:root {
  --ink: #171214;
  --ink-soft: #655b60;
  --paper: #fffafb;
  --paper-deep: #fff1f5;
  --card: #ffffff;
  --rose: #db2777;
  --rose-soft: #f9a8d4;
  --blush: #ffe4ee;
  --line: rgba(63, 36, 48, 0.12);
  --serif: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { color: white; background: var(--rose); }

.shell { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.legal-header { height: 88px; display: flex; align-items: center; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 90%, transparent); }
.legal-nav { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font: 500 29px/1 var(--serif); letter-spacing: -.04em; }
.brand img { width: 42px; height: 42px; border-radius: 14px; box-shadow: 0 8px 22px rgba(40,20,30,.12); }
.nav-links { display: flex; align-items: center; gap: 24px; color: var(--ink-soft); font-size: 13px; font-weight: 600; }
.nav-links a { transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--rose); }
.back-home { padding: 11px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink) !important; background: white; }

.legal-hero { position: relative; overflow: hidden; padding: 110px 0 96px; background: linear-gradient(160deg, var(--paper), var(--paper-deep)); }
.legal-hero::after { content: ""; position: absolute; width: 540px; height: 540px; right: -180px; top: -300px; border-radius: 50%; background: radial-gradient(circle, var(--blush), transparent 70%); }
.eyebrow { margin: 0 0 19px; color: var(--rose); font-size: 11px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.legal-hero h1 { max-width: 820px; margin: 0; font: 400 clamp(58px, 7vw, 92px)/.92 var(--serif); letter-spacing: -.045em; }
.legal-hero .lede { max-width: 720px; margin: 28px 0 0; color: var(--ink-soft); font-size: 18px; line-height: 1.7; }
.legal-meta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.effective-date { display: inline-flex; padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); background: rgba(255,255,255,.7); font-size: 11px; font-weight: 600; }
.download-pdf { display: inline-flex; padding: 10px 15px; border-radius: 999px; color: white; background: var(--ink); font-size: 11px; font-weight: 700; transition: transform .2s, background .2s; }
.download-pdf:hover { transform: translateY(-2px); background: var(--rose); }

.legal-layout { display: grid; grid-template-columns: 230px minmax(0, 760px); justify-content: space-between; gap: 80px; padding: 90px 0 130px; }
.toc { align-self: start; position: sticky; top: 28px; }
.toc p { margin: 0 0 16px; color: var(--rose); font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; border-top: 1px solid var(--line); }
.toc a { display: grid; grid-template-columns: 26px 1fr; padding: 11px 0; color: var(--ink-soft); font-size: 11px; line-height: 1.3; transition: color .2s, padding-left .2s; }
.toc a::before { content: counter(toc, decimal-leading-zero); color: #b7a6ae; font: italic 11px var(--serif); }
.toc a:hover { padding-left: 4px; color: var(--rose); }

.legal-content { min-width: 0; }
.notice { margin-bottom: 55px; padding: 22px 24px; border-left: 3px solid var(--rose); border-radius: 0 16px 16px 0; background: var(--paper-deep); color: var(--ink-soft); font-size: 13px; line-height: 1.65; }
.notice strong { color: var(--ink); }
.legal-section { scroll-margin-top: 30px; padding: 0 0 48px; margin: 0 0 48px; border-bottom: 1px solid var(--line); }
.legal-section:last-child { margin-bottom: 0; border-bottom: 0; }
.section-number { display: block; margin-bottom: 12px; color: var(--rose); font: italic 17px var(--serif); }
.legal-section h2 { margin: 0 0 21px; font: 400 39px/1.05 var(--serif); letter-spacing: -.025em; }
.legal-section h3 { margin: 28px 0 10px; font-size: 14px; }
.legal-section p, .legal-section li { color: var(--ink-soft); font-size: 14px; line-height: 1.75; }
.legal-section p { margin: 0 0 16px; }
.legal-section ul, .legal-section ol { margin: 15px 0 20px; padding-left: 22px; }
.legal-section li { margin-bottom: 8px; padding-left: 5px; }
.legal-section strong { color: var(--ink); }
.legal-section a { color: var(--rose); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--rose) 35%, transparent); text-underline-offset: 3px; }
.legal-section a:hover { text-decoration-color: var(--rose); }
.data-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 23px 0; }
.data-card { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.data-card h3 { margin: 0 0 8px; color: var(--ink); font: 600 13px var(--sans); }
.data-card p { margin: 0; font-size: 12px; line-height: 1.65; }
.plain-table { width: 100%; margin: 22px 0; border-collapse: collapse; font-size: 12px; }
.plain-table th, .plain-table td { padding: 14px; text-align: left; vertical-align: top; border: 1px solid var(--line); line-height: 1.6; }
.plain-table th { color: var(--ink); background: var(--paper-deep); }
.plain-table td { color: var(--ink-soft); background: white; }
.contact-box { padding: 27px; border-radius: 22px; color: white; background: #1b1518; }
.contact-box p { color: #c9bcc2; }
.contact-box a { display: inline-flex; margin-top: 5px; padding: 11px 17px; border-radius: 999px; color: white; background: var(--rose); text-decoration: none; font-size: 12px; font-weight: 700; }

.legal-footer { padding: 34px 0 44px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-brand { font-size: 24px; }
.footer-brand img { width: 36px; height: 36px; }
.footer-links { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 18px; color: var(--ink-soft); font-size: 11px; }
.footer-links a:hover { color: var(--rose); }
.footer-links span a { color: var(--ink); font-weight: 700; }

@media (max-width: 860px) {
  .legal-layout { grid-template-columns: 1fr; gap: 45px; }
  .toc { position: static; }
  .toc ol { display: grid; grid-template-columns: 1fr 1fr; }
  .toc li:nth-child(even) { padding-left: 18px; }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 32px, 560px); }
  .legal-header { height: 74px; }
  .brand { font-size: 25px; }.brand img { width: 36px; height: 36px; }
  .nav-links > a:not(.back-home) { display: none; }
  .legal-hero { padding: 76px 0 68px; }
  .legal-hero h1 { font-size: 58px; }
  .legal-hero .lede { font-size: 16px; }
  .legal-layout { padding: 60px 0 90px; }
  .toc ol { grid-template-columns: 1fr; }.toc li:nth-child(even) { padding-left: 0; }
  .legal-section h2 { font-size: 34px; }
  .data-grid { grid-template-columns: 1fr; }
  .plain-table { display: block; overflow-x: auto; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
