@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --rose:    #c8516a;
  --rose-lt: #f7e8ec;
  --rose-mid:#e8a0ad;
  --ink:     #1a1018;
  --ink-mid: #4a3a44;
  --ink-soft:#8a7280;
  --cream:   #fdf8f5;
  --white:   #ffffff;
  --radius:  20px;
  --max:     1100px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
}

/* ── NOISE GRAIN ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* ── HERO ── */
.legal-hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  padding: 140px 60px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 1;
}

.legal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 50% 120%, rgba(200,81,106,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 20%, rgba(200,81,106,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--rose-mid);
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.7s ease 0.1s forwards;
}

.hero-eyebrow-line {
  width: 36px;
  height: 1px;
  background: var(--rose-mid);
}

.legal-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(42px, 6vw, 78px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -1px;
  color: #fff;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease 0.2s forwards;
}

.legal-hero h1 em {
  font-style: italic;
  color: var(--rose-mid);
}

.legal-hero .hero-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-style: italic;
  color: rgba(255,255,255,0.45);
  max-width: 500px;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.8s ease 0.35s forwards;
}

.hero-ornament {
  margin-top: 48px;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 300px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.5s forwards;
}

.hero-orn-line {
  flex: 1;
  height: 1px;
  background: rgba(200,81,106,0.3);
}

.hero-orn-sym {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  color: var(--rose-mid);
  opacity: 0.5;
}

/* ── TOC SIDEBAR ── */
.legal-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  max-width: 1320px;
  margin: 0 auto;
  padding: 80px 60px 120px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 40px;
  padding-right: 48px;
}

.toc-title {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 20px;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toc-list li a {
  display: block;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 400;
  transition: all 0.2s;
  border-left: 2px solid transparent;
}

.toc-list li a:hover,
.toc-list li a.active {
  color: var(--rose);
  background: var(--rose-lt);
  border-left-color: var(--rose);
}

/* ── MAIN CONTENT ── */
.legal-content {
  min-width: 0;
}

/* ── SECTION BLOCKS ── */
.legal-section {
  margin-bottom: 72px;
  scroll-margin-top: 40px;
}

.legal-section-inner {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
}

.legal-section-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 36px 48px 32px;
  border-bottom: 1px solid rgba(200,81,106,0.1);
  position: relative;
}

.legal-section-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rose), var(--rose-mid));
}

.section-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px;
  font-weight: 300;
  color: rgba(200,81,106,0.12);
  line-height: 1;
  flex-shrink: 0;
}

.section-title-group h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.3px;
}

.section-title-group h2 em {
  font-style: italic;
  color: var(--rose);
}

.section-title-group .sec-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rose);
  font-weight: 500;
  margin-bottom: 6px;
}

.legal-section-body {
  padding: 36px 48px 44px;
}

/* ── SUB-SECTIONS ── */
.sub-section {
  margin-bottom: 32px;
}

.sub-section:last-child {
  margin-bottom: 0;
}

.sub-section h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sub-section h3::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--rose);
  flex-shrink: 0;
}

.sub-section p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-mid);
  margin-bottom: 14px;
}

.sub-section p:last-child {
  margin-bottom: 0;
}

/* ── COOKIE INFO BOX ── */
.info-box {
  background: var(--rose-lt);
  border: 1px solid rgba(200,81,106,0.2);
  border-radius: 14px;
  padding: 24px 28px;
  margin: 20px 0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-box-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.info-box p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-mid);
  margin: 0;
}

/* ── COOKIE LIST ── */
.cookie-list {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cookie-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-mid);
  padding: 12px 16px;
  background: rgba(200,81,106,0.04);
  border-radius: 10px;
  border-left: 3px solid var(--rose-mid);
}

.cookie-list li::before {
  content: '→';
  color: var(--rose);
  font-weight: 500;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── BROWSER TABLE ── */
.browser-note {
  background: var(--white);
  border: 1px solid rgba(200,81,106,0.15);
  border-radius: 14px;
  padding: 22px 28px;
  margin-top: 18px;
}

.browser-note p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0;
}

.browser-note a {
  color: var(--rose);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(200,81,106,0.3);
  transition: border-color 0.2s;
}

.browser-note a:hover {
  border-color: var(--rose);
}

/* ── ORNAMENT DIVIDER ── */
.ornament-divider {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 16px 0 56px;
}

.orn-line {
  flex: 1;
  height: 1px;
  background: rgba(200,81,106,0.18);
}

.orn-symbol {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: var(--rose-mid);
}

/* ── DATE BADGE ── */
.date-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-soft);
  background: rgba(200,81,106,0.07);
  border-radius: 50px;
  padding: 6px 14px;
  margin-bottom: 48px;
}

.date-badge span {
  color: var(--rose);
  font-weight: 500;
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.up { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── FOOTER ── */
.legal-footer {
  position: relative;
  z-index: 1;
  background: var(--ink);
  padding: 48px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}

.footer-brand em {
  font-style: italic;
  color: var(--rose-mid);
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--rose-mid); }

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.2);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; padding: 60px 36px 80px; }
  .toc { position: static; padding-right: 0; margin-bottom: 40px; }
  .toc-list { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .toc-list li a { border-left: none; border-bottom: 2px solid transparent; border-radius: 8px; }
  .toc-list li a:hover, .toc-list li a.active { border-left: none; border-bottom-color: var(--rose); }
  .legal-hero { padding: 110px 36px 80px; }
  .legal-footer { flex-direction: column; text-align: center; padding: 40px 28px; }
  .footer-links { justify-content: center; flex-wrap: wrap; gap: 16px; }
}

@media (max-width: 600px) {
  .legal-layout { padding: 48px 20px 64px; }
  .legal-section-header { padding: 28px 24px 24px; }
  .legal-section-body { padding: 28px 24px 32px; }
  .legal-hero { padding: 100px 20px 70px; }
  .legal-hero h1 { font-size: 42px; }
  .section-num { display: none; }
  
}
