:root {
  --wine: #66273c;
  --wine-dark: #401424;
  --rose: #d6657c;
  --rose-soft: #f8e9ec;
  --cream: #fffaf7;
  --paper: #fffefd;
  --ink: #2c2024;
  --muted: #72656a;
  --line: #eadfe2;
  --sage: #6c897b;
  --shadow: 0 24px 60px rgba(71, 31, 46, .10);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(214, 101, 124, .13), transparent 28rem),
    radial-gradient(circle at 95% 15%, rgba(108, 137, 123, .10), transparent 24rem),
    var(--cream);
  font: 16px/1.72 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--wine); text-underline-offset: 3px; }
a:hover { color: var(--rose); }
button, a { -webkit-tap-highlight-color: transparent; }

.reading-progress {
  position: fixed;
  z-index: 50;
  inset: 0 auto auto 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rose), var(--wine));
}

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  border-bottom: 1px solid rgba(234, 223, 226, .85);
  background: rgba(255, 250, 247, .88);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 72px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--wine-dark);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -.03em;
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: block;
  object-fit: contain;
  border-radius: 13px;
  box-shadow: 0 8px 18px rgba(102, 39, 60, .12);
}
.brand small { color: var(--muted); font-size: .72rem; font-weight: 600; letter-spacing: .03em; }

.top-nav { display: flex; align-items: center; gap: 6px; }
.top-nav a {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 650;
  text-decoration: none;
}
.top-nav a:hover, .top-nav a[aria-current="page"] { color: var(--wine); background: var(--rose-soft); }
.print-button {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--wine);
  background: var(--paper);
  font: inherit;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
}
.print-button:hover { border-color: var(--rose); }

.hero {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 76px 0 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 60px;
  align-items: end;
}

.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 18px;
  color: var(--rose);
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 25px; height: 2px; background: currentColor; }
h1, h2, h3 { color: var(--wine-dark); line-height: 1.15; letter-spacing: -.035em; }
h1 { max-width: 760px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.65rem, 6vw, 5.1rem); font-weight: 500; }
.hero-lead { max-width: 700px; margin: 25px 0 0; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.24rem); }
.hero-meta {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 254, 253, .72);
  box-shadow: var(--shadow);
}
.hero-meta p { margin: 0; }
.hero-meta p + p { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.meta-label { display: block; color: var(--muted); font-size: .73rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.hero-meta strong { color: var(--wine); }

.draft-notice {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 34px;
  padding: 15px 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid #e8c77d;
  border-radius: 15px;
  color: #674a0c;
  background: #fff8e7;
  font-size: .9rem;
}
.draft-notice svg { flex: 0 0 auto; width: 20px; margin-top: 2px; }
.draft-notice strong { color: #553b05; }

.page-layout {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 90px;
  display: grid;
  grid-template-columns: 250px minmax(0, 760px);
  justify-content: space-between;
  gap: 70px;
  align-items: start;
}

.toc { position: sticky; top: 104px; }
.toc-title { margin: 0 0 14px; color: var(--wine-dark); font-size: .78rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: grid;
  grid-template-columns: 25px 1fr;
  padding: 7px 0;
  color: var(--muted);
  font-size: .83rem;
  line-height: 1.35;
  text-decoration: none;
}
.toc a::before { content: counter(toc, decimal-leading-zero); color: #b6a8ad; font-size: .68rem; font-weight: 800; }
.toc a:hover, .toc a.active { color: var(--wine); }

.document {
  padding: clamp(25px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.summary {
  margin: 0 0 45px;
  padding: 22px 24px;
  border-left: 4px solid var(--sage);
  border-radius: 0 15px 15px 0;
  color: #40564c;
  background: #eff5f1;
}
.summary strong { color: #294137; }
.legal-section { scroll-margin-top: 105px; }
.legal-section + .legal-section { margin-top: 52px; padding-top: 50px; border-top: 1px solid var(--line); }
h2 { margin: 0 0 19px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.6rem, 3vw, 2.15rem); font-weight: 500; }
h3 { margin: 28px 0 9px; font-size: 1.02rem; letter-spacing: -.015em; }
p { margin: 0 0 15px; }
ul { margin: 12px 0 18px; padding-left: 21px; }
li { padding-left: 4px; }
li + li { margin-top: 7px; }
.data-table { width: 100%; margin: 22px 0; border-collapse: collapse; font-size: .9rem; }
.data-table th, .data-table td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table th { color: var(--wine); background: #fcf6f7; font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; }
.data-table td:first-child { width: 29%; color: var(--wine-dark); font-weight: 700; }
.contact-card { margin-top: 22px; padding: 21px; border: 1px dashed var(--rose); border-radius: 16px; background: var(--rose-soft); }
.contact-card p:last-child { margin-bottom: 0; }
.placeholder { padding: 1px 5px; border-radius: 4px; color: #7c2f44; background: #fff; font-weight: 750; }

.site-footer { padding: 38px 20px 50px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: .84rem; }
.footer-links { display: flex; justify-content: center; gap: 18px; margin-bottom: 10px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 52px; }
  .hero-meta { max-width: 520px; }
  .page-layout { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.7); }
  .toc ol { columns: 2; column-gap: 24px; }
  .toc li { break-inside: avoid; }
}

@media (max-width: 620px) {
  .header-inner, .hero, .draft-notice, .page-layout { width: min(100% - 28px, 1180px); }
  .header-inner { min-height: 64px; }
  .brand small, .print-button { display: none; }
  .top-nav a { padding: 8px 9px; font-size: .77rem; }
  .hero { padding: 44px 0 38px; }
  .toc ol { columns: 1; }
  .document { border-radius: 22px; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; }
  .data-table thead { display: none; }
  .data-table tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .data-table td { width: auto !important; padding: 3px 0; border: 0; }
}

@media print {
  body { background: white; font-size: 10.5pt; }
  .site-header, .reading-progress, .toc, .print-button, .draft-notice { display: none !important; }
  .hero, .page-layout { width: 100%; display: block; margin: 0; padding: 0; }
  .hero { margin-bottom: 28px; }
  h1 { font-size: 32pt; }
  .hero-meta { margin-top: 20px; box-shadow: none; }
  .document { padding: 0; border: 0; box-shadow: none; }
  .legal-section { break-inside: avoid-page; }
  .site-footer { padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
