/* ════════════════════════════════════════════════════════════════
   LEGAL PAGES — Privacy Policy, Terms, etc.
   Uses design tokens from style.css; adds legal-specific layout.
════════════════════════════════════════════════════════════════ */

.legal-page {
  background: #fdfbf6;
  color: #2a2a2a;
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── Simplified header ─── */
.legal-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #0b1c35;
  border-bottom: 1px solid rgba(196,151,74,0.3);
  box-shadow: 0 2px 12px rgba(11,28,53,0.15);
}
.legal-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.legal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #f4ede1;
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.4px;
  transition: opacity 0.2s ease;
}
.legal-brand:hover { opacity: 0.85; }
.legal-back-link {
  color: #c4974a;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.3px;
  padding: 8px 16px;
  border: 1px solid rgba(196,151,74,0.4);
  border-radius: 999px;
  transition: all 0.2s ease;
}
.legal-back-link:hover {
  background: rgba(196,151,74,0.12);
  border-color: var(--gold-shine, #e8c27a);
  color: var(--gold-shine, #e8c27a);
}

/* ─── Main content area ─── */
.legal-main {
  flex: 1;
  padding: 60px 0 80px;
}
.legal-main .container {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Hero ─── */
.legal-hero {
  text-align: center;
  padding: 48px 0 56px;
  border-bottom: 1px solid rgba(196,151,74,0.25);
  position: relative;
  margin-bottom: 48px;
}
.legal-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c4974a, transparent);
}
.legal-eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #c4974a;
  font-weight: 700;
  margin-bottom: 18px;
}
.legal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 600;
  color: #0b1c35;
  letter-spacing: 0.3px;
  line-height: 1.05;
  margin: 0 0 18px;
}
.legal-title em {
  font-style: italic;
  color: #c4974a;
}
.legal-sub {
  font-size: 17px;
  color: #4a5568;
  max-width: 620px;
  margin: 0 auto 24px;
  line-height: 1.65;
}
.legal-meta {
  font-size: 12.5px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #8a6d3b;
  font-weight: 600;
}

/* ─── Body layout ─── */
.legal-body {
  font-size: 15.5px;
  color: #2d3748;
}
.legal-body p {
  margin: 0 0 16px;
  line-height: 1.78;
}
.legal-body a {
  color: #8a6d3b;
  text-decoration: underline;
  text-decoration-color: rgba(196,151,74,0.35);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.legal-body a:hover {
  color: #c4974a;
  text-decoration-color: #c4974a;
}

/* ─── Intro block ─── */
.legal-intro {
  background: rgba(196,151,74,0.04);
  border: 1px solid rgba(196,151,74,0.18);
  border-radius: 6px;
  padding: 32px 36px;
  margin-bottom: 48px;
}
.legal-intro p:last-of-type { margin-bottom: 0; }

/* ─── Callout boxes ─── */
.legal-callout {
  padding: 18px 22px;
  border-radius: 4px;
  margin: 20px 0;
  font-size: 15px;
  line-height: 1.65;
}
.legal-callout strong {
  display: inline;
  color: inherit;
  font-weight: 700;
}
.legal-callout-amber {
  background: linear-gradient(135deg, rgba(196,151,74,0.1) 0%, rgba(196,151,74,0.04) 100%);
  border-left: 3px solid #c4974a;
  color: #3d2f15;
}
.legal-callout-navy {
  background: linear-gradient(135deg, rgba(11,28,53,0.95) 0%, rgba(20,45,80,0.95) 100%);
  border-left: 3px solid #e8c27a;
  color: #f4ede1;
}
.legal-callout-navy strong { color: #e8c27a; }

/* ─── Section blocks ─── */
.legal-section {
  margin: 48px 0;
  padding-top: 8px;
}
.legal-section:first-of-type { margin-top: 0; }

.legal-section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 600;
  color: #0b1c35;
  margin: 0 0 24px;
  letter-spacing: 0.2px;
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(196,151,74,0.22);
  position: relative;
  line-height: 1.2;
}
.legal-section h2::after {
  content: '';
  position: absolute;
  left: 0; bottom: -1px;
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, #c4974a, #e8c27a);
}
.legal-num {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c4974a 0%, #e8c27a 100%);
  color: #0b1c35;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(196,151,74,0.35);
}

.legal-section h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  color: #0b1c35;
  margin: 28px 0 12px;
  letter-spacing: 0.2px;
}

/* ─── Lists ─── */
.legal-list,
.legal-list-ordered {
  margin: 14px 0 18px;
  padding: 0 0 0 4px;
  list-style: none;
}
.legal-list li,
.legal-list-ordered li {
  position: relative;
  padding: 6px 0 6px 26px;
  line-height: 1.65;
}
.legal-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 16px;
  width: 5px;
  height: 5px;
  background: linear-gradient(135deg, #c4974a, #e8c27a);
  transform: rotate(45deg);
  box-shadow: 0 0 4px rgba(196,151,74,0.4);
}
.legal-list-ordered {
  counter-reset: legal-counter;
}
.legal-list-ordered li {
  counter-increment: legal-counter;
}
.legal-list-ordered li::before {
  content: counter(legal-counter) '.';
  position: absolute;
  left: 0;
  top: 6px;
  color: #c4974a;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.65;
}
.legal-list strong,
.legal-list-ordered strong { color: #0b1c35; font-weight: 600; }
.legal-list em,
.legal-list-ordered em { color: #8a6d3b; font-style: italic; }

/* ─── Notes ─── */
.legal-note {
  font-size: 14px;
  color: #5a6578;
  font-style: italic;
  padding: 12px 16px;
  background: rgba(196,151,74,0.05);
  border-left: 2px solid rgba(196,151,74,0.4);
  border-radius: 0 4px 4px 0;
  margin: 16px 0;
}
.legal-note a { font-style: normal; }

/* ─── Contact card (Section 6) ─── */
.legal-contact-card {
  background: linear-gradient(135deg, #0b1c35 0%, #14264a 100%);
  color: #f4ede1;
  padding: 28px 32px;
  border-radius: 6px;
  margin: 24px 0;
  border: 1px solid rgba(196,151,74,0.4);
  box-shadow:
    0 4px 12px rgba(11,28,53,0.15),
    0 12px 32px rgba(11,28,53,0.25),
    inset 0 1px 0 rgba(232,194,122,0.15);
  position: relative;
  overflow: hidden;
}
.legal-contact-card::before {
  content: '';
  position: absolute;
  top: 16px; left: 20px;
  width: 22px; height: 22px;
  border-top: 1px solid rgba(232,194,122,0.55);
  border-left: 1px solid rgba(232,194,122,0.55);
}
.legal-contact-card::after {
  content: '';
  position: absolute;
  bottom: 16px; right: 20px;
  width: 22px; height: 22px;
  border-bottom: 1px solid rgba(232,194,122,0.55);
  border-right: 1px solid rgba(232,194,122,0.55);
}
.legal-contact-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px;
  font-weight: 600;
  color: #e8c27a;
  margin-bottom: 18px;
  letter-spacing: 0.3px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(232,194,122,0.2);
}
.legal-contact-grid {
  display: grid;
  gap: 10px;
}
.legal-contact-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.legal-contact-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(232,194,122,0.8);
  font-weight: 600;
  min-width: 80px;
}
.legal-contact-row a,
.legal-contact-row span:not(.legal-contact-label) {
  color: #f4ede1;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.legal-contact-row a:hover {
  color: #e8c27a;
  text-decoration: underline;
  text-decoration-color: rgba(232,194,122,0.5);
}

/* ─── Footer note ─── */
.legal-footer-note {
  margin: 56px 0 0;
  padding: 24px 28px;
  background: rgba(11,28,53,0.04);
  border: 1px solid rgba(11,28,53,0.1);
  border-radius: 6px;
  font-size: 14px;
  color: #4a5568;
}
.legal-footer-note p { margin: 0 0 8px; }
.legal-footer-note p:last-child { margin-bottom: 0; }

/* ─── Simplified footer ─── */
.legal-footer {
  background: #0b1c35;
  color: rgba(244,237,225,0.7);
  padding: 32px 0;
  border-top: 1px solid rgba(196,151,74,0.2);
}
.legal-footer-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.legal-footer-brand {
  font-family: 'Cormorant Garamond', serif;
  color: #f4ede1;
}
.legal-footer-brand strong {
  font-size: 18px;
  font-weight: 600;
  margin-right: 8px;
  color: #e8c27a;
}
.legal-footer-brand span {
  font-size: 13px;
  color: rgba(244,237,225,0.5);
}
.legal-footer-contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
}
.legal-footer-contacts a {
  color: rgba(244,237,225,0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}
.legal-footer-contacts a:hover { color: #e8c27a; }
.legal-footer-div {
  color: rgba(196,151,74,0.4);
}
.legal-footer-copy {
  font-size: 12.5px;
  color: rgba(244,237,225,0.4);
  letter-spacing: 0.4px;
  margin-top: 6px;
}

/* ─── Mobile ─── */
@media (max-width: 720px) {
  .legal-main { padding: 32px 0 60px; }
  .legal-hero { padding: 28px 0 36px; margin-bottom: 32px; }
  .legal-title { font-size: clamp(32px, 9vw, 44px); }
  .legal-sub { font-size: 15px; }
  .legal-intro { padding: 22px 20px; margin-bottom: 32px; }
  .legal-section { margin: 36px 0; }
  .legal-section h2 {
    font-size: 24px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .legal-num { width: 32px; height: 32px; font-size: 13px; }
  .legal-section h3 { font-size: 18px; }
  .legal-contact-card { padding: 22px 20px; }
  .legal-contact-label { min-width: auto; flex-basis: 100%; }
  .legal-footer { padding: 24px 0; }
  .legal-footer-contacts { flex-direction: column; gap: 4px; }
  .legal-footer-div { display: none; }
  .legal-header-inner { flex-wrap: wrap; gap: 12px; }
}

/* ─── Print ─── */
@media print {
  .legal-header, .legal-footer { display: none; }
  .legal-main { padding: 0; }
  .legal-callout-navy {
    background: #f4ede1;
    color: #0b1c35;
    border-left: 2px solid #c4974a;
  }
  .legal-callout-navy strong { color: #8a6d3b; }
  .legal-contact-card {
    background: #fff;
    color: #0b1c35;
    border: 1px solid #c4974a;
    box-shadow: none;
  }
  .legal-contact-title { color: #8a6d3b; }
  .legal-contact-row a,
  .legal-contact-row span:not(.legal-contact-label) { color: #0b1c35; }
  .legal-contact-label { color: #8a6d3b; }
  .legal-num {
    box-shadow: none;
    border: 1px solid #8a6d3b;
  }
}