/* ============================================================
   HK DRINKS — Legal Pages Stylesheet  v2.0
   Fully self-contained — no dependency on CSS variable
   inheritance from style.css.
   Shared by: terms.html, privacy.html, delivery.html, returns.html
   ============================================================ */

/* ── RESET & BASE ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  background: #111111;
  color: #cccccc;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; }

/* ── DARK MODE (default) ── */
:root {
  --l-gold:          #c9a84c;
  --l-gold-dim:      rgba(201,168,76,0.2);
  --l-gold-med:      rgba(201,168,76,0.4);
  --l-bg-page:       #111111;
  --l-bg-hero-from:  #0a0a0a;
  --l-bg-hero-to:    #111111;
  --l-bg-card:       #1a1a1a;
  --l-bg-section-alt:#1a1a1a;
  --l-bg-table-head: #1a1a1a;
  --l-bg-table-odd:  #141414;
  --l-bg-table-even: #1c1c1c;
  --l-bg-footer:     #0a0a0a;
  --l-bg-navbar:     rgba(10,10,10,0.97);
  --l-bg-notice:     #1a1a1a;
  --l-border:        rgba(201,168,76,0.2);
  --l-text-heading:  #ffffff;
  --l-text-body:     #cccccc;
  --l-text-muted:    #888888;
  --l-text-notice:   #888888;
}

/* ── LIGHT MODE overrides ── */
[data-theme="light"] {
  --l-gold:          #a07b2e;
  --l-gold-dim:      rgba(160,123,46,0.2);
  --l-gold-med:      rgba(160,123,46,0.35);
  --l-bg-page:       #ffffff;
  --l-bg-hero-from:  #ffffff;
  --l-bg-hero-to:    #f5f0e8;
  --l-bg-card:       #ffffff;
  --l-bg-section-alt:#f5f0e8;
  --l-bg-table-head: #f0ece3;
  --l-bg-table-odd:  #ffffff;
  --l-bg-table-even: #faf7f2;
  --l-bg-footer:     #1a1208;
  --l-bg-navbar:     rgba(255,255,255,0.98);
  --l-bg-notice:     #faf7f2;
  --l-border:        rgba(160,123,46,0.2);
  --l-text-heading:  #1a1208;
  --l-text-body:     #3d2e14;
  --l-text-muted:    #6b5e4a;
  --l-text-notice:   #888888;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: var(--l-bg-navbar);
  border-bottom: 1px solid var(--l-gold-dim);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s ease;
}

.navbar__logo {
  display: flex;
  align-items: center;
  line-height: 1;
  text-decoration: none;
}
.navbar__logo-img {
  max-height: 28px;
  width: auto;
}
.logo-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  color: var(--l-gold);
  text-transform: uppercase;
}
.logo-sub {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  color: var(--l-text-heading);
  text-transform: uppercase;
}

.legal-back-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--l-gold);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s;
  margin-left: auto;
}
.legal-back-btn:hover { opacity: 0.65; }
.legal-back-btn i { font-size: 0.8rem; }

/* ============================================================
   HERO BANNER
   ============================================================ */
.legal-hero {
  background: linear-gradient(180deg, var(--l-bg-hero-from) 0%, var(--l-bg-hero-to) 100%);
  border-bottom: 1px solid var(--l-gold-dim);
  padding: 148px 40px 72px;
  text-align: center;
  position: relative;
}
.legal-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--l-gold);
  opacity: 0.6;
}
.legal-hero__inner {
  max-width: 680px;
  margin: 0 auto;
}
.legal-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--l-gold);
  margin-bottom: 18px;
}
.legal-hero__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 300;
  color: var(--l-text-heading);
  margin-bottom: 16px;
  line-height: 1.12;
  letter-spacing: 0.02em;
}
.legal-hero__sub {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--l-text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.legal-main {
  background: var(--l-bg-page);
  padding: 72px 0 120px;
}
.legal-container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Intro notice box ── */
.legal-notice {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--l-bg-notice);
  border: 1px solid var(--l-gold-dim);
  border-left: 4px solid var(--l-gold);
  padding: 28px 32px;
  margin-bottom: 60px;
}
.legal-notice i {
  font-size: 1.25rem;
  color: var(--l-gold);
  margin-top: 2px;
  flex-shrink: 0;
}
.legal-notice p {
  font-size: 0.875rem;
  color: var(--l-text-body);
  line-height: 1.85;
  margin: 0;
}
.legal-notice strong {
  color: var(--l-text-heading);
  font-weight: 600;
}
.legal-notice a {
  color: var(--l-gold);
  text-decoration: underline;
  text-decoration-color: var(--l-gold-dim);
  text-underline-offset: 3px;
}

/* ── Highlight / quick-facts cards ── */
.legal-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 60px;
}
.legal-highlight-card {
  background: var(--l-bg-card);
  border: 1px solid var(--l-border);
  padding: 28px 20px 24px;
  text-align: center;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.legal-highlight-card:hover {
  border-color: var(--l-gold-med);
  transform: translateY(-2px);
}
.legal-highlight-card i {
  font-size: 1.6rem;
  color: var(--l-gold);
  margin-bottom: 14px;
  display: block;
}
.legal-highlight-card h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--l-text-heading);
  margin-bottom: 8px;
}
.legal-highlight-card p {
  font-size: 0.75rem;
  color: var(--l-text-muted);
  line-height: 1.55;
  margin: 0;
}

/* ── Section blocks ── */
.legal-section {
  margin-bottom: 52px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--l-border);
}
.legal-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.legal-section h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--l-text-heading);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--l-gold-dim);
  letter-spacing: 0.01em;
}
.legal-section p {
  font-size: 0.875rem;
  color: var(--l-text-body);
  line-height: 1.9;
  margin-bottom: 14px;
}
.legal-section p:last-child { margin-bottom: 0; }

/* Unordered lists */
.legal-section ul {
  list-style: none;
  padding: 0;
  margin: 14px 0 18px 0;
}
.legal-section ul li {
  position: relative;
  padding-left: 22px;
  font-size: 0.875rem;
  color: var(--l-text-body);
  line-height: 1.85;
  margin-bottom: 10px;
}
.legal-section ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--l-gold);
  font-size: 0.8rem;
  line-height: 1.85;
}

/* Ordered lists */
.legal-section ol {
  list-style: decimal;
  margin: 14px 0 18px 22px;
  padding: 0;
}
.legal-section ol li {
  font-size: 0.875rem;
  color: var(--l-text-body);
  line-height: 1.85;
  margin-bottom: 12px;
  padding-left: 6px;
}
.legal-section ol li ul { margin-top: 10px; }

/* Nested list inside ol */
.legal-section ol li ul li { font-size: 0.855rem; }

/* Links */
.legal-section a {
  color: var(--l-gold);
  text-decoration: underline;
  text-decoration-color: var(--l-gold-dim);
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}
.legal-section a:hover { opacity: 0.7; }
.legal-section strong {
  color: var(--l-text-heading);
  font-weight: 600;
}

/* ── Data tables ── */
.legal-table-wrap {
  overflow-x: auto;
  margin: 24px 0 28px;
  border: 1px solid var(--l-border);
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.825rem;
}
.legal-table thead tr {
  background: var(--l-bg-table-head);
}
.legal-table th {
  padding: 13px 18px;
  text-align: left;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--l-gold);
  white-space: nowrap;
}
.legal-table td {
  padding: 13px 18px;
  color: var(--l-text-body);
  border-top: 1px solid var(--l-border);
  vertical-align: top;
  line-height: 1.65;
}
.legal-table tbody tr:nth-child(odd)  { background: var(--l-bg-table-odd); }
.legal-table tbody tr:nth-child(even) { background: var(--l-bg-table-even); }

/* Status badges */
.legal-badge {
  display: inline-block;
  padding: 3px 11px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 2px;
  white-space: nowrap;
}
.legal-badge--yes {
  background: rgba(39,174,96,0.12);
  color: #27ae60;
  border: 1px solid rgba(39,174,96,0.28);
}
.legal-badge--no {
  background: rgba(231,76,60,0.1);
  color: #e74c3c;
  border: 1px solid rgba(231,76,60,0.22);
}

/* ── Callout box ── */
.legal-callout {
  background: var(--l-bg-section-alt);
  border-left: 3px solid var(--l-gold);
  padding: 18px 22px;
  font-size: 0.845rem;
  color: var(--l-text-body);
  line-height: 1.75;
  margin-top: 22px;
}
.legal-callout strong {
  color: var(--l-text-heading);
  font-weight: 600;
}

/* ── Contact box ── */
.legal-contact-box {
  background: var(--l-bg-card);
  border: 1px solid var(--l-gold-med);
  padding: 44px 48px;
  text-align: center;
  margin-top: 70px;
  position: relative;
}
.legal-contact-box::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--l-gold);
}
.legal-contact-box h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.55rem;
  font-weight: 300;
  color: var(--l-text-heading);
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}
.legal-contact-box p {
  font-size: 0.875rem;
  color: var(--l-text-body);
  margin-bottom: 12px;
  line-height: 1.7;
}
.legal-contact-box a {
  color: var(--l-gold);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: opacity 0.2s;
  font-size: 0.9rem;
}
.legal-contact-box a:hover { opacity: 0.7; }
.legal-contact-box i { font-size: 1rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.legal-footer {
  background: var(--l-bg-footer);
  padding: 48px 32px 40px;
  text-align: center;
  border-top: 1px solid var(--l-gold-dim);
}
.legal-footer__notice {
  max-width: 600px;
  margin: 0 auto 28px;
  padding: 22px 28px;
  border: 1px solid var(--l-gold-dim);
  border-left: 3px solid var(--l-gold);
}
.legal-footer__notice p {
  font-size: 0.72rem;
  color: #888888;
  line-height: 1.75;
  margin-bottom: 6px;
}
.legal-footer__notice p:last-child { margin-bottom: 0; }
.legal-footer__hotline {
  font-size: 0.64rem !important;
  color: #666666 !important;
  letter-spacing: 0.06em;
}
.legal-footer__copy {
  font-size: 0.7rem;
  color: #555555;
  line-height: 1.9;
}
.legal-footer__copy a {
  color: #c9a84c;
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.legal-footer__copy a:hover { opacity: 1; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .legal-highlights {
    grid-template-columns: repeat(2, 1fr);
  }
  .legal-hero {
    padding: 124px 28px 60px;
  }
  .legal-container {
    padding: 0 28px;
  }
  .navbar {
    padding: 0 28px;
  }
}

@media (max-width: 640px) {
  .legal-highlights {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .legal-highlight-card {
    padding: 20px 14px;
  }
  .legal-hero {
    padding: 104px 20px 52px;
  }
  .legal-container {
    padding: 0 20px;
  }
  .navbar {
    padding: 0 20px;
    height: 64px;
  }
  .legal-notice {
    flex-direction: column;
    gap: 12px;
    padding: 22px 20px;
  }
  .legal-section h2 {
    font-size: 1.3rem;
  }
  .legal-contact-box {
    padding: 32px 24px;
  }
  .legal-table th,
  .legal-table td {
    padding: 10px 12px;
    font-size: 0.78rem;
  }
  .legal-main {
    padding: 52px 0 80px;
  }
}
