/* Capital Gains Advisory — site styles */
/* Palette: forest green, warm cream with a touch of yellow, navy, golden ochre. */
:root {
  --bg: #f8f7f3;           /* pearl white */
  --bg-alt: #f3ecd8;       /* deeper cream */
  --surface: #ffffff;
  --ink: #1c2a22;
  --ink-soft: #465348;
  --muted: #6c776a;
  --line: #e4dbc3;
  --brand: #2f5d3a;        /* forest green */
  --brand-deep: #1f4029;
  --brand-soft: #e5ecd9;   /* moss tint */
  --sage: #9aae88;
  --sand: #f1e2b3;         /* soft wheat yellow */
  --gold: #c89b2c;         /* golden ochre, used sparingly */
  --navy: #1d2e48;
  --logo-ink: #342578;     /* from logo wordmark */
  --navy-ink: #f6f1e2;
  --navy-soft: #c9d2e0;
  --accent: #a4561f;       /* error / attention */
  --focus: #3f7a4c;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(29,46,72,.06), 0 8px 24px rgba(29,46,72,.07);
  --wrap: 1140px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--sans); }
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-deep); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
li { margin-bottom: .35em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
.eyebrow { font: 600 .8rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: .9em; }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .8em 1.35em; border-radius: 999px; font: 600 .98rem/1 var(--sans); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn { white-space: nowrap; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.topbar { background: var(--navy); color: var(--navy-soft); font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar .tb-links { display: flex; gap: 18px; }
.nav { display: flex; align-items: center; gap: 20px; min-height: 82px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--logo-ink); margin-right: auto; }
.logo:hover { color: var(--logo-ink); }
.logo-mark { width: auto; height: 60px; flex: none; }
.logo-text { font: 500 1.08rem/1.15 "Jost", "Futura", "Century Gothic", var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--logo-ink); }
.logo-text > span { display: block; }
.menu-trigger { white-space: nowrap; }
@media (max-width: 640px) { .topbar .wrap > span:first-child { display: none; } .topbar .wrap { justify-content: flex-end; } }
@media (max-width: 480px) { .logo-text { font-size: .92rem; } .logo-mark { height: 50px; } }
.logo-foot { margin-bottom: 18px; }
.logo-foot .logo-mark { height: 64px; background: #f8f7f3; border-radius: 12px; padding: 6px 8px; box-sizing: content-box; }
.site-footer .logo-foot .logo-text { color: var(--navy-ink); }
.menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu > li { position: relative; margin: 0; }
.menu a, .menu button.menu-trigger { display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; font: 500 .95rem/1 var(--sans); border-radius: 8px; background: none; border: 0; cursor: pointer; }
.menu a:hover, .menu button.menu-trigger:hover, .menu a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-deep); }
.menu-trigger::after { content: ""; display: inline-block; margin-left: 6px; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.dropdown { position: absolute; top: calc(100% + 6px); left: -10px; min-width: 340px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; list-style: none; margin: 0; display: none; }
.dropdown.open { display: block; }
.dropdown a { padding: 10px 12px; }
.dropdown a span { display: block; font-size: .8rem; color: var(--muted); font-weight: 400; margin-top: 4px; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.icon-btn svg { width: 18px; height: 18px; }
.nav-toggle { display: none; }
@media (max-width: 1020px) {
  .nav-toggle { display: inline-grid; }
  .menu { position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); flex-direction: column; align-items: stretch; background: var(--surface); padding: 84px 16px 24px; box-shadow: var(--shadow); display: none; overflow-y: auto; z-index: 60; }
  .menu.open { display: flex; animation: menu-in .2s ease-out; }
  .dropdown { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 10px; min-width: 0; }
  .menu-trigger { display: none !important; }
  .menu .mobile-only { display: block; }
  .nav-actions .btn { display: none; }
  .menu > li:first-child { position: static; }
  .menu-close { position: absolute; top: 18px; right: 16px; }
}
@media (min-width: 1021px) { .mobile-only, .menu-close { display: none !important; } }
.scrim { position: fixed; inset: 0; background: rgba(20,30,48,.4); z-index: 45; display: none; }
.scrim.show { display: block; }

/* Search */
.search-panel { position: fixed; inset: 0; z-index: 80; background: rgba(20,30,48,.5); display: none; padding: 10vh 16px 16px; }
.search-panel.open { display: block; }
.search-box { max-width: 640px; margin: 0 auto; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.search-box input { width: 100%; border: 0; border-bottom: 1px solid var(--line); padding: 18px 20px; font: 1.1rem var(--sans); background: transparent; color: var(--ink); }
.search-box input:focus { outline: none; }
.search-results { list-style: none; margin: 0; padding: 6px; max-height: 55vh; overflow-y: auto; }
.search-results li { margin: 0; }
.search-results a { display: block; padding: 12px 14px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.search-results a:hover, .search-results a:focus { background: var(--brand-soft); outline: none; }
.search-results strong { display: block; font-family: var(--serif); font-size: 1.05rem; }
.search-results span { font-size: .88rem; color: var(--muted); }
.search-hint { padding: 12px 20px; font-size: .85rem; color: var(--muted); }

/* Sections */
section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Hero */
.hero { padding: 72px 0 84px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -30% -15% auto 45%; height: 560px; background: radial-gradient(closest-side, var(--sand), transparent 72%); opacity: .8; z-index: -1; }
.hero::after { content: ""; position: absolute; inset: auto 50% -45% -15%; height: 460px; background: radial-gradient(closest-side, var(--brand-soft), transparent 70%); z-index: -1; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: .4em; }
.hero .lede { margin-bottom: 1.6em; }
.trust-list { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 28px 0 0; padding: 0; list-style: none; font-size: .92rem; color: var(--ink-soft); }
.trust-list li { display: flex; align-items: center; gap: 8px; margin: 0; }
.trust-list svg { width: 18px; height: 18px; color: var(--brand); flex: none; }
.hero-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 30px; box-shadow: var(--shadow); }
.hero-card h2 { font-size: 1.35rem; }
.price-mini { list-style: none; padding: 0; margin: 0 0 20px; }
.price-mini li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); margin: 0; }
.price-mini li:last-child { border-bottom: 0; }
.price-mini b { font-family: var(--serif); font-size: 1.05rem; white-space: nowrap; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }

/* Page hero (interior) */
.page-hero { padding: 56px 0 48px; background: linear-gradient(180deg, var(--bg-alt), var(--bg)); border-bottom: 1px solid var(--line); }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }

/* Cards */
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: border-color .15s, transform .15s, box-shadow .15s; }
a.card { display: block; text-decoration: none; color: inherit; }
a.card:hover { border-color: var(--sage); transform: translateY(-2px); box-shadow: var(--shadow); color: inherit; }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--ink-soft); margin-bottom: .8em; }
.card .more { font-weight: 600; color: var(--brand); font-size: .93rem; }
.card-feature { padding: 34px; background: linear-gradient(160deg, var(--surface) 30%, var(--brand-soft)); border-top: 4px solid var(--brand); }
.card-feature .tag { display: inline-block; font: 600 .72rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; background: var(--gold); color: var(--navy); padding: 6px 10px; border-radius: 999px; margin-bottom: 16px; }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 16px; }
.icon svg { width: 22px; height: 22px; }
.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: var(--brand-soft); box-shadow: inset 0 0 0 1.5px var(--brand); }
.checks li::after { content: ""; position: absolute; left: 5px; top: calc(.45em + 4px); width: 6px; height: 4px; border-left: 1.5px solid var(--brand); border-bottom: 1.5px solid var(--brand); transform: rotate(-45deg); }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 56px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--navy-ink); box-shadow: 0 0 0 4px var(--sand); font: 600 1.05rem/40px var(--serif); text-align: center; }

/* Two-col content */
.split { display: grid; grid-template-columns: 1.4fr .9fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.aside { position: sticky; top: 100px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.aside .price { font: 600 2rem/1 var(--serif); color: var(--brand-deep); margin: 4px 0 6px; }
.aside .btn { width: 100%; margin-top: 10px; }
@media (max-width: 900px) { .aside { position: static; } }

/* Pricing table */
.ptable { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.ptable th, .ptable td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ptable th { background: var(--bg-alt); font: 600 .85rem/1.3 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--brand-deep); }
.ptable td:last-child { font-family: var(--serif); font-weight: 600; white-space: nowrap; font-size: 1.1rem; }
.ptable tr:last-child td { border-bottom: 0; }
.ptable td small { display: block; font-family: var(--sans); font-weight: 400; color: var(--muted); font-size: .88rem; white-space: normal; }
@media (max-width: 600px) { .ptable th:first-child, .ptable td { padding: 12px; } }

/* Pricing tool */
.estimator { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.est-progress { display: flex; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.est-progress li { flex: 1; list-style: none; margin: 0; padding: 14px 10px; text-align: center; font-size: .88rem; color: var(--muted); font-weight: 500; }
.est-progress li[aria-current="step"] { color: var(--brand-deep); box-shadow: inset 0 -3px 0 var(--brand); background: var(--surface); }
.est-progress li.done { color: var(--brand); }
.est-progress ol { display: flex; margin: 0; padding: 0; width: 100%; }
.est-body { padding: 32px; }
@media (max-width: 600px) { .est-body { padding: 22px 16px; } }
.est-step[hidden] { display: none; }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 18px 0 8px; }
@media (max-width: 640px) { .choice-grid { grid-template-columns: 1fr; } }
.choice { position: relative; display: flex; gap: 14px; padding: 18px; border: 1.5px solid var(--line); border-radius: var(--radius); cursor: pointer; background: var(--surface); transition: border-color .15s, background .15s; }
.choice:hover { border-color: var(--sage); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .box { flex: none; width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--muted); margin-top: 2px; display: grid; place-items: center; }
.choice input:checked ~ .box { background: var(--brand); border-color: var(--brand); }
.choice input:checked ~ .box::after { content: ""; width: 7px; height: 12px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(45deg); }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice strong { display: block; font-size: 1rem; margin-bottom: 2px; }
.choice span.d { display: block; font-size: .88rem; color: var(--muted); line-height: 1.45; }
.est-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.est-error { color: var(--accent); font-size: .92rem; min-height: 1.4em; margin: 6px 0 0; }
.est-result { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; }
@media (max-width: 800px) { .est-result { grid-template-columns: 1fr; } }
.est-total { background: linear-gradient(160deg, var(--brand-soft), var(--sand)); border-radius: var(--radius); padding: 26px; }
.est-total .amt { font: 600 clamp(2.4rem, 6vw, 3.4rem)/1 var(--serif); color: var(--brand-deep); margin: 6px 0 8px; }
.est-lines { list-style: none; padding: 0; margin: 0; }
.est-lines li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
.est-lines li b { font-family: var(--serif); white-space: nowrap; }
.est-lines li small { display: block; color: var(--muted); font-size: .85rem; }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--brand); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 20px 18px; color: var(--ink-soft); }
.faq .a p:last-child { margin-bottom: 0; }

/* CTA band */
.cta-band { background: var(--navy); color: var(--navy-ink); background-image: radial-gradient(circle at 100% 0%, rgba(200,155,44,.22), transparent 45%); border-radius: 24px; padding: 48px; display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center; }
.cta-band h2 { color: var(--navy-ink); margin-bottom: .3em; }
.cta-band p { color: var(--navy-soft); margin: 0; }
.cta-band .btn-primary { background: var(--sand); color: #1d2e48; }
.cta-band .btn-primary:hover { background: #f7ecc9; color: #1d2e48; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.08); }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; padding: 32px 22px; } }

/* About */
.portrait { width: 100%; height: auto; object-fit: cover; aspect-ratio: 4/5; max-width: 100%; border-radius: 22px; background: linear-gradient(160deg, var(--brand-soft), var(--sand)); display: grid; place-items: center; color: var(--brand-deep); font: 600 4rem/1 var(--serif); border: 1px solid var(--line); }
.cred { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; padding: 0; list-style: none; }
.cred li { margin: 0; background: var(--brand-soft); color: var(--brand-deep); font-size: .85rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; }

/* Articles */
.article-meta { color: var(--muted); font-size: .9rem; margin-bottom: 1.2em; }
.callout { background: color-mix(in srgb, var(--sand) 55%, var(--surface)); border-left: 4px solid var(--gold); padding: 18px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 1.5em 0; }
.callout p:last-child { margin: 0; }

/* Scheduler embed */
.embed { width: 100%; min-height: 760px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }

/* Footer */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 64px 0 28px; margin-top: 0; font-size: .94rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h3 { font: 600 .8rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--brand); text-decoration: underline; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; color: var(--ink-soft); }
.foot-legal { border-top: 1px solid var(--line); margin-top: 44px; padding-top: 22px; color: var(--muted); font-size: .82rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-legal p { margin: 0; max-width: 80ch; }
.areas { color: var(--ink-soft); }

/* Mobile sticky CTA (helps Ads landing pages) */
.mobile-cta { display: none; }
@media (max-width: 700px) {
  .mobile-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); z-index: 40; }
  .mobile-cta .btn { padding: .8em .6em; font-size: .92rem; }
  body { padding-bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Navy footer */
.site-footer { background: var(--navy); color: var(--navy-soft); border-top: 0; }
.site-footer h3 { color: var(--gold); }
.site-footer a, .site-footer .hours, .site-footer .areas, .site-footer .muted { color: var(--navy-soft); }
.site-footer a:hover { color: var(--navy-ink); }
.foot-legal { border-top-color: rgba(255,255,255,.14); color: var(--navy-soft); }
.eyebrow::before { content: ""; display: inline-block; width: 18px; height: 2px; background: var(--gold); vertical-align: middle; margin-right: 10px; transform: translateY(-2px); }
.center.eyebrow::before, .est-total .eyebrow::before, .aside .eyebrow::before { display: none; }
.prose > .callout:first-child { margin-top: 0; }

/* Legal pages */
.legal h2 { font-size: 1.35rem; margin-top: 0; }
.legal h3 { font-size: 1.08rem; margin-top: 1.3em; }
.legal p, .legal li { color: var(--ink-soft); font-size: .98rem; }
.legal-sec { padding-top: 36px; margin-top: 36px; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
#agreement { scroll-margin-top: 110px; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; margin: 32px 0 0; }
.toc h2 { font-size: 1.1rem; margin-bottom: .6em; }
.toc ol { margin: 0; padding-left: 1.4em; columns: 2; column-gap: 32px; }
.toc li { margin-bottom: .3em; break-inside: avoid; font-size: .94rem; }
@media (max-width: 640px) { .toc ol { columns: 1; } }
.legal-address { font-style: normal; line-height: 1.7; color: var(--ink-soft); }
.summary-box { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 24px 28px; margin: 28px 0 0; }
.summary-box h2 { font-size: 1.2rem; }
.in-short { background: color-mix(in srgb, var(--sand) 40%, var(--surface)); border-radius: var(--radius-sm); padding: 12px 16px; }
.table-scroll { overflow-x: auto; margin: 0 0 1.2em; }
.legal-table { width: 100%; min-width: 520px; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); font-size: .92rem; }
.legal-table th, .legal-table td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; color: var(--ink-soft); }
.legal-table th { background: var(--bg-alt); color: var(--ink); font-weight: 600; }
.legal-table td:first-child { color: var(--ink); font-weight: 500; width: 32%; }
.legal-table .c { text-align: center; width: 14%; font-weight: 600; }
.toc { scroll-margin-top: 110px; }

@keyframes menu-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.foot-legal .legal-links { white-space: normal; } .foot-legal a { color: var(--navy-soft); }
