:root {
  --ivory: #f5f0e8;
  --ivory-deep: #ebe3d6;
  --cream: #ede5d4;
  --aubergine: #2b1820;
  --aubergine-soft: #3d2530;
  --rose-deep: #a86b62;
  --gold: #b8945e;
  --gold-light: #d4b88a;
  --ink: #1a0f15;
  --whisper: rgba(43, 24, 32, 0.6);
  --display: 'Fraunces', 'Times New Roman', serif;
  --body: 'Inter Tight', system-ui, sans-serif;
}

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

body {
  background: var(--ivory);
  color: var(--aubergine);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.04;
  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.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ NAV ============ */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(43, 24, 32, 0.08);
  color: var(--aubergine);
}

.logo {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: 0.35em;
  text-decoration: none;
  color: var(--aubergine);
  font-feature-settings: "ss01";
}

.logo .dot {
  display: inline-block;
  width: 5px; height: 5px;
  background: var(--gold);
  border-radius: 50%;
  margin: 0 0.15em 0.2em;
  vertical-align: middle;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.nav-links a {
  color: var(--aubergine);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.4s ease;
}

.nav-links a:hover { color: var(--rose-deep); }
.nav-links a:hover::after { width: 100%; }

/* ============ PAGE HEADER ============ */
.page-header {
  background: var(--aubergine);
  color: var(--ivory);
  padding: 7rem 3rem 5rem;
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  right: -10%;
  top: 50%;
  transform: translateY(-50%);
  width: 50vh;
  height: 50vh;
  border: 1px solid rgba(184, 148, 94, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.page-header-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.eyebrow .line {
  width: 30px; height: 1px;
  background: var(--gold);
}

.page-header h1 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.page-header h1 em {
  font-style: italic;
  color: var(--rose);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}

.effective-date {
  display: inline-block;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(212, 184, 138, 0.4);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* ============ CONTENT ============ */
.content {
  max-width: 900px;
  margin: 0 auto;
  padding: 5rem 3rem 6rem;
}

.intro {
  font-family: var(--display);
  font-weight: 300;
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--aubergine-soft);
  margin-bottom: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(43, 24, 32, 0.12);
  letter-spacing: -0.01em;
}

.intro em {
  font-style: italic;
  color: var(--rose-deep);
}

section.legal-section {
  margin-bottom: 3.5rem;
  scroll-margin-top: 100px;
}

section.legal-section h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  color: var(--aubergine);
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
}

section.legal-section h2 .num {
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 0;
}

section.legal-section h3 {
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

section.legal-section p {
  margin-bottom: 1.25rem;
  color: var(--aubergine-soft);
  max-width: 65ch;
  font-size: 1rem;
}

section.legal-section ul {
  margin: 1rem 0 1.5rem 0;
  padding-left: 0;
  list-style: none;
}

section.legal-section ul li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.75rem;
  color: var(--aubergine-soft);
  max-width: 65ch;
}

section.legal-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

section.legal-section ul li strong {
  color: var(--aubergine);
  font-weight: 500;
}

section.legal-section a {
  color: var(--rose-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(168, 107, 98, 0.3);
  transition: border-color 0.3s ease;
}

section.legal-section a:hover {
  border-color: var(--rose-deep);
}

.notice-box {
  background: var(--ivory-deep);
  border-left: 3px solid var(--gold);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  font-size: 0.95rem;
  color: var(--aubergine);
}

.notice-box strong {
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  color: var(--rose-deep);
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

/* ============ TOC (table of contents) ============ */
.toc {
  background: var(--ivory-deep);
  padding: 2rem 2rem;
  margin-bottom: 4rem;
  border: 1px solid rgba(43, 24, 32, 0.08);
}

.toc-label {
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.toc ol {
  list-style: none;
  counter-reset: tocitem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem 2rem;
}

.toc ol li {
  counter-increment: tocitem;
}

.toc ol li a {
  color: var(--aubergine);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.3s ease;
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
}

.toc ol li a::before {
  content: counter(tocitem, decimal-leading-zero);
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.toc ol li a:hover {
  color: var(--rose-deep);
}

/* ============ CONTACT BOX ============ */
.contact-box {
  background: var(--aubergine);
  color: var(--ivory);
  padding: 3rem 2.5rem;
  margin-top: 4rem;
}

.contact-box .section-label {
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 500;
}

.contact-box h3 {
  font-family: var(--display);
  font-weight: 300;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.contact-box h3 em {
  font-style: italic;
  color: var(--gold-light);
}

.contact-box p {
  color: rgba(245, 240, 232, 0.7);
  margin-bottom: 1.5rem;
  max-width: 60ch;
}

.contact-box a {
  color: var(--gold-light);
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 400;
  border-bottom: 1px solid rgba(212, 184, 138, 0.3);
  transition: border-color 0.3s ease;
}

.contact-box a:hover {
  border-color: var(--gold-light);
}

/* ============ FOOTER ============ */
footer {
  background: var(--ink);
  color: rgba(245, 240, 232, 0.7);
  padding: 3rem 3rem 2rem;
  text-align: center;
}

footer .footer-logo {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: 0.35em;
  color: var(--ivory);
  margin-bottom: 1.5rem;
}

footer .footer-logo .dot {
  display: inline-block;
  width: 5px; height: 5px;
  background: var(--gold);
  border-radius: 50%;
  margin: 0 0.15em 0.2em;
  vertical-align: middle;
}

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

footer .footer-links a {
  color: rgba(245, 240, 232, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

footer .footer-links a:hover { color: var(--gold-light); }

footer .copyright {
  font-size: 0.78rem;
  color: rgba(245, 240, 232, 0.4);
  letter-spacing: 0.05em;
  border-top: 1px solid rgba(245, 240, 232, 0.1);
  padding-top: 1.5rem;
}

footer .copyright a {
  color: rgba(245, 240, 232, 0.55);
  text-decoration: none;
}

footer .copyright a:hover { color: var(--gold-light); }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .page-header { padding: 5rem 1.5rem 3.5rem; }
  .content { padding: 3rem 1.5rem 4rem; }
  .toc ol { grid-template-columns: 1fr; }
  .contact-box { padding: 2rem 1.5rem; }
  footer { padding: 2.5rem 1.5rem 1.5rem; }
  footer .footer-links { flex-direction: column; gap: 0.75rem; }
  section.legal-section h2 { font-size: 1.4rem; }
  .intro { font-size: 1.15rem; }
}
