:root {
  --bg: #fff9f7;
  --surface: #ffffff;
  --surface-soft: #fbf3f4;
  --surface-lavender: #f1eef8;
  --ink: #2f2832;
  --muted: #746c76;
  --line: rgba(96, 72, 88, 0.16);
  --line-strong: rgba(96, 72, 88, 0.28);
  --berry: #8a3f62;
  --berry-dark: #6f2f4d;
  --lavender: #8175ad;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(92, 62, 77, 0.10);
  --radius: 26px;
  --container: 1180px;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--ink); font-family: var(--font-sans); line-height: 1.68; -webkit-font-smoothing: antialiased; }
a { color: var(--berry-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--berry); }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(129,117,173,.35); outline-offset: 3px; }
::selection { background: #e9cbd7; color: var(--ink); }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 1000; padding: 11px 16px; border-radius: 12px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 16px; }
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(255,249,247,.94); backdrop-filter: blur(16px); }
.header-row { min-height: 72px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; flex: 0 0 auto; }
.brand-sign { position: relative; width: 38px; height: 38px; border: 1px solid var(--line-strong); border-radius: 50%; background: rgba(255,255,255,.8); }
.brand-sign i { position: absolute; display: block; border-radius: 999px; background: var(--berry); }
.brand-sign i:nth-child(1) { width: 14px; height: 6px; left: 7px; top: 9px; transform: rotate(-24deg); }
.brand-sign i:nth-child(2) { width: 18px; height: 6px; right: 5px; top: 16px; transform: rotate(22deg); background: var(--lavender); }
.brand-sign i:nth-child(3) { width: 10px; height: 6px; left: 12px; bottom: 7px; transform: rotate(-8deg); background: #7b927e; }
.brand-copy { display: grid; line-height: 1.1; }
.brand-copy b { font: 600 20px/1.1 var(--font-display); }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.header-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.header-nav a { color: #5f5761; text-decoration: none; font-size: 14px; font-weight: 700; }
.header-nav a[aria-current="page"] { color: var(--berry); }
.header-menu { display: none; width: 44px; height: 44px; margin-left: auto; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); font-size: 20px; }
.mobile-nav { display: none; border-top: 1px solid var(--line); padding: 10px 20px 18px; background: var(--bg); }
.mobile-nav.is-open { display: grid; }
.mobile-nav a { padding: 11px 2px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; }
.legal-hero { position: relative; overflow: hidden; padding: 78px 0 48px; }
.legal-hero::after { content: ""; position: absolute; width: 430px; height: 430px; right: -150px; top: -170px; border-radius: 50%; background: radial-gradient(circle, rgba(233,203,215,.72), rgba(233,203,215,0) 70%); pointer-events: none; }
.eyebrow { margin: 0 0 14px; color: var(--berry); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.legal-hero h1 { position: relative; z-index: 1; max-width: 920px; margin: 0; font: 500 clamp(44px,6vw,76px)/1.02 var(--font-display); letter-spacing: -.045em; }
.legal-lead { max-width: 760px; margin: 22px 0 0; color: var(--muted); font-size: 19px; }
.legal-meta { display: inline-flex; margin-top: 24px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.74); color: var(--muted); font-size: 13px; font-weight: 700; }
.legal-layout { display: grid; grid-template-columns: 250px minmax(0,1fr); gap: 34px; align-items: start; padding: 0 0 100px; }
.legal-layout > div { min-width: 0; }
.legal-toc { position: sticky; top: 98px; max-height: calc(100vh - 120px); overflow: auto; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.68); }
.legal-toc strong { display: block; margin-bottom: 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.legal-toc a { display: block; padding: 7px 0; color: var(--muted); text-decoration: none; font-size: 13px; line-height: 1.35; }
.legal-toc a:hover { color: var(--berry); }
.legal-toc-mobile { display: none; margin-bottom: 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.legal-toc-mobile summary { cursor: pointer; font-weight: 800; }
.legal-toc-mobile nav { display: grid; margin-top: 10px; }
.legal-toc-mobile a { padding: 7px 0; color: var(--muted); text-decoration: none; font-size: 14px; }
.legal-document { min-width: 0; padding: 38px 54px 56px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.legal-section-title { scroll-margin-top: 100px; margin: 52px 0 22px; padding-top: 34px; border-top: 1px solid var(--line); font: 500 clamp(28px,3vw,39px)/1.15 var(--font-display); letter-spacing: -.025em; }
.legal-section-title:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.appendix-title { margin-top: 70px; border-top-width: 2px; }
.legal-subsection-title { scroll-margin-top: 100px; margin: 38px 0 18px; font: 600 25px/1.2 var(--font-display); }
.legal-clause, .legal-paragraph { margin: 0 0 15px; color: #4e4650; }
.clause-number { color: var(--berry-dark); font-weight: 800; }
.legal-list { margin: 4px 0 22px; padding: 0; list-style: none; }
.legal-list li { position: relative; margin: 0 0 10px; padding-left: 24px; color: #4e4650; }
.legal-list li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--berry); box-shadow: 0 0 0 5px rgba(138,63,98,.09); }
.legal-table-wrap { width: 100%; max-width: 100%; margin: 24px 0 30px; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.legal-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 14px; }
.legal-table th, .legal-table td { padding: 15px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-table th { background: var(--surface-lavender); color: var(--ink); }
.legal-table tr:last-child td { border-bottom: 0; }
.details-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.detail-card { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-soft); }
.detail-card dt { margin: 0 0 7px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.detail-card dd { margin: 0; font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.detail-card-wide { grid-column: 1 / -1; }
.payment-note { margin-top: 28px; padding: 20px 22px; border-left: 4px solid var(--berry); border-radius: 0 16px 16px 0; background: var(--surface-lavender); color: #4e4650; }
.site-footer { padding: 28px 0 38px; border-top: 1px solid var(--line); }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 700; }
.footer-copy { color: var(--muted); font-size: 12px; }
@media (max-width: 900px) {
  .header-nav { display: none; }
  .header-menu { display: inline-grid; place-items: center; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { display: none; }
  .legal-toc-mobile { display: block; }
}
@media (max-width: 680px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .brand-copy small { display: none; }
  .legal-hero { padding: 54px 0 34px; }
  .legal-hero h1 { font-size: clamp(38px,11vw,56px); }
  .legal-lead { font-size: 17px; }
  .legal-layout { padding-bottom: 60px; }
  .legal-document { padding: 28px 20px 40px; border-radius: 20px; }
  .legal-section-title { margin-top: 40px; padding-top: 28px; font-size: 29px; }
  .details-grid { grid-template-columns: 1fr; }
  .detail-card-wide { grid-column: auto; }
  .legal-table-wrap { border: 0; overflow: visible; }
  .legal-table { display: block; min-width: 0; }
  .legal-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .legal-table tbody, .legal-table tr, .legal-table td { display: block; width: 100%; }
  .legal-table tr { margin-bottom: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
  .legal-table td { display: grid; grid-template-columns: minmax(110px,.85fr) minmax(0,1.15fr); gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .legal-table td:last-child { border-bottom: 0; }
  .legal-table td::before { content: attr(data-label); color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
  .footer-row { align-items: flex-start; flex-direction: column; }
}
@media print {
  .site-header, .legal-toc, .legal-toc-mobile, .site-footer { display: none !important; }
  body { background: #fff; }
  .legal-hero { padding: 20px 0; }
  .legal-layout { display: block; padding: 0; }
  .legal-document { padding: 0; border: 0; box-shadow: none; }
  .legal-section-title { break-after: avoid; }
  .legal-table-wrap { overflow: visible; }
}
