:root {
  --brand-blue: #437ce6;
  --brand-light-blue: #4f95d1;
  --brand-yellow: #f6cd32;
  --navy-950: #0b1f3a;
  --navy-800: #17345c;
  --slate-950: #0f172a;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --off-white: #f8fafc;
  --white: #ffffff;
  --success: #15803d;
  --error: #b91c1c;
  --shadow-sm: 0 8px 30px rgba(15, 23, 42, .06);
  --shadow-md: 0 24px 60px rgba(15, 23, 42, .10);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --content: 1240px;
  --reading: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--slate-950);
  background: var(--white);
  font-family: "Noto Sans Thai", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 9999;
  transform: translateY(-160%); background: var(--white); color: var(--navy-950);
  padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow-md);
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(calc(100% - 40px), var(--content)); margin-inline: auto; }
.reading { max-width: var(--reading); }
.section { padding: 96px 0; }
.section-sm { padding: 42px 0; }
.section-soft { background: var(--off-white); }
.section-navy { background: var(--navy-950); color: var(--white); }
.eyebrow {
  margin: 0 0 14px; color: var(--brand-blue); font-size: 13px; font-weight: 700;
  letter-spacing: .11em; text-transform: uppercase;
}
.section-navy .eyebrow { color: #93c5fd; }
.section-title {
  margin: 0; color: var(--slate-950); font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1.22; letter-spacing: -.025em;
}
.section-navy .section-title { color: var(--white); }
.section-lead { margin: 18px 0 0; color: var(--slate-600); font-size: 18px; }
.section-navy .section-lead { color: #cbd5e1; }
.muted { color: var(--slate-600); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(226,232,240,.9); backdrop-filter: blur(16px);
}
.header-inner {
  min-height: 78px; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: 216px; display: block; }
.main-nav { display: flex; justify-content: center; gap: 24px; align-items: center; }
.main-nav a { text-decoration: none; font-size: 14px; font-weight: 600; color: var(--slate-700); }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--brand-blue); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.language { font-weight: 700; font-size: 13px; color: var(--slate-600); text-decoration: none; padding: 9px 8px; }
.utility-link { font-size: 13px; font-weight: 700; color: var(--navy-950); text-decoration: none; padding: 10px 10px; }
.mobile-toggle { display: none; border: 0; background: transparent; padding: 8px; color: var(--navy-950); cursor: pointer; }
.mobile-menu { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px;
  padding: 11px 19px; border-radius: var(--radius-sm); border: 1px solid transparent;
  text-decoration: none; font-weight: 700; line-height: 1.3; cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease;
}
.btn-primary { background: var(--navy-950); color: var(--white); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--navy-800); box-shadow: 0 10px 24px rgba(11,31,58,.18); }
.btn-secondary { background: var(--white); color: var(--navy-950); border-color: var(--slate-300); }
.btn-secondary:hover, .btn-secondary:focus-visible { border-color: var(--brand-blue); color: var(--brand-blue); }
.btn-yellow { background: var(--brand-yellow); color: var(--navy-950); }
.btn-yellow:hover, .btn-yellow:focus-visible { background: #ffda54; }
.btn-full { width: 100%; }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(circle at 82% 18%, rgba(79,149,209,.28), transparent 30%),
    radial-gradient(circle at 66% 78%, rgba(67,124,230,.20), transparent 28%),
    var(--navy-950);
  padding: 88px 0 82px;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); gap: 70px; align-items: center; }
.partner-pill {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: #dbeafe;
  background: rgba(255,255,255,.06); font-size: 13px; font-weight: 700;
}
.partner-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-yellow); flex: 0 0 auto; }
.hero h1 { margin: 0; font-size: clamp(2.55rem, 5.1vw, 4rem); line-height: 1.12; letter-spacing: -.035em; max-width: 760px; }
.hero-copy { max-width: 720px; margin: 24px 0 0; color: #dbeafe; font-size: 19px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-subtrust { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 30px; color: #cbd5e1; font-size: 14px; }
.hero-subtrust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-subtrust span::before { content: ""; width: 6px; height: 6px; background: var(--brand-light-blue); border-radius: 50%; }

.system-map {
  position: relative; min-height: 430px; display: grid; place-items: center; padding: 22px;
  border: 1px solid rgba(255,255,255,.12); border-radius: 28px; background: rgba(255,255,255,.045);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.system-core {
  position: relative; z-index: 2; width: 190px; min-height: 150px; border-radius: 26px;
  display: grid; place-items: center; text-align: center; padding: 22px;
  background: var(--white); color: var(--navy-950); box-shadow: var(--shadow-md);
}
.system-core strong { font-size: 18px; display: block; }
.system-core small { color: var(--slate-600); display: block; margin-top: 4px; }
.map-node {
  position: absolute; display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 12px;
  border-radius: 12px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.13);
  color: #f8fafc; font-size: 13px; font-weight: 700;
}
.map-node::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-yellow); }
.node-property { left: 20px; top: 88px; }
.node-airbnb { right: 22px; top: 56px; }
.node-booking { right: 18px; top: 154px; }
.node-direct { right: 46px; bottom: 60px; }
.node-support { left: 26px; bottom: 70px; }
.map-line { position: absolute; height: 1px; background: linear-gradient(90deg, rgba(79,149,209,.15), rgba(79,149,209,.8), rgba(79,149,209,.15)); transform-origin: left center; }
.line-1 { width: 140px; left: 138px; top: 132px; transform: rotate(15deg); }
.line-2 { width: 135px; left: 260px; top: 140px; transform: rotate(-28deg); }
.line-3 { width: 128px; left: 265px; top: 205px; transform: rotate(0deg); }
.line-4 { width: 130px; left: 250px; top: 267px; transform: rotate(32deg); }
.line-5 { width: 140px; left: 116px; top: 292px; transform: rotate(-18deg); }

/* Trust strip */
.trust-strip { border-bottom: 1px solid var(--slate-200); background: var(--white); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { min-height: 92px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 18px; color: var(--slate-700); font-size: 13px; font-weight: 700; border-right: 1px solid var(--slate-200); }
.trust-item:last-child { border-right: 0; }

/* Comparison */
.compare-grid { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.compare-card { border: 1px solid var(--slate-200); border-radius: var(--radius-lg); padding: 30px; background: var(--white); }
.compare-card.highlight { border: 2px solid var(--brand-blue); box-shadow: var(--shadow-md); position: relative; }
.compare-card.highlight::before { content: "Recommended service path"; position: absolute; top: -14px; left: 24px; background: var(--brand-blue); color: var(--white); padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .03em; }
[lang="th"] .compare-card.highlight::before { content: "ทางเลือกที่เราให้บริการ"; }
.compare-card h3 { margin: 0; font-size: 23px; }
.compare-list { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.compare-list li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; color: var(--slate-700); }
.compare-icon { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; margin-top: 2px; font-size: 13px; font-weight: 900; }
.compare-card:not(.highlight) .compare-icon { background: var(--slate-100); color: var(--slate-500); }
.compare-card.highlight .compare-icon { background: #dbeafe; color: var(--brand-blue); }
.section-cta { margin-top: 34px; display: flex; justify-content: center; }

/* Expertise */
.expertise-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 68px; align-items: center; }
.expertise-panel { border: 1px solid #244a75; border-radius: 28px; padding: 30px; background: rgba(255,255,255,.035); }
.expertise-platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.platform-chip { min-height: 90px; display: grid; place-items: center; text-align: center; border: 1px solid rgba(255,255,255,.13); border-radius: 18px; background: rgba(255,255,255,.06); color: var(--white); font-size: 20px; font-weight: 800; }
.expertise-tags { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.expertise-tag { padding: 12px 13px; border-radius: 12px; color: #dbeafe; background: rgba(79,149,209,.10); font-size: 13px; }

/* Capabilities */
.cards-3 { margin-top: 46px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cap-card { padding: 26px; border: 1px solid var(--slate-200); border-radius: var(--radius-md); background: var(--white); box-shadow: var(--shadow-sm); }
.icon-box { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: #eff6ff; color: var(--brand-blue); }
.icon-box svg { width: 24px; height: 24px; }
.cap-card h3 { margin: 18px 0 8px; font-size: 21px; line-height: 1.35; }
.cap-card p { margin: 0; color: var(--slate-600); font-size: 15px; }

/* Who */
.who-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.who-item { min-height: 130px; padding: 20px; border: 1px solid var(--slate-200); border-radius: var(--radius-md); display: flex; flex-direction: column; justify-content: space-between; background: var(--white); }
.who-item strong { font-size: 18px; }
.who-item span { font-size: 13px; color: var(--slate-500); }
.who-note { margin-top: 26px; color: var(--slate-600); text-align: center; }

/* Process */
.process { margin-top: 48px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; position: relative; }
.process::before { content: ""; position: absolute; height: 2px; background: var(--slate-200); top: 25px; left: 7%; right: 7%; z-index: 0; }
.process-step { position: relative; z-index: 1; padding-top: 0; }
.step-number { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-950); color: var(--white); font-weight: 800; border: 5px solid var(--white); box-shadow: 0 0 0 1px var(--slate-200); }
.process-step h3 { margin: 18px 0 7px; font-size: 17px; }
.process-step p { margin: 0; color: var(--slate-600); font-size: 14px; }

/* Pricing */
.pricing-grid { margin-top: 48px; display: grid; grid-template-columns: .82fr 1.18fr; gap: 30px; align-items: start; }
.price-explain { padding: 10px 0; }
.price-rule { padding: 18px 0; border-bottom: 1px solid var(--slate-200); }
.price-rule:first-child { padding-top: 0; }
.price-rule strong { display: block; font-size: 19px; color: var(--navy-950); }
.price-rule span { color: var(--slate-600); font-size: 14px; }
.calculator { border-radius: 28px; background: var(--white); border: 1px solid var(--slate-200); box-shadow: var(--shadow-md); padding: 30px; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label, .field-label { font-size: 13px; font-weight: 700; color: var(--slate-700); }
.field select, .field input, .field textarea {
  width: 100%; min-height: 48px; border: 1px solid var(--slate-300); border-radius: var(--radius-sm);
  background: var(--white); color: var(--slate-950); padding: 10px 12px; outline: none;
}
.field textarea { min-height: 118px; resize: vertical; }
.field select:focus, .field input:focus, .field textarea:focus { border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(67,124,230,.14); }
.estimate { margin: 22px 0 16px; padding: 24px; border-radius: 18px; background: var(--navy-950); color: var(--white); text-align: center; }
.estimate-label { color: #cbd5e1; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.estimate-value { display: block; margin-top: 6px; font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; }
.estimate-note { margin-top: 8px; color: #cbd5e1; font-size: 12px; }
.calc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc-footnote { margin: 14px 0 0; color: var(--slate-500); font-size: 12px; }

/* Support */
.support-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; }
.contact-lines { margin-top: 28px; display: grid; gap: 10px; }
.contact-line { display: inline-flex; align-items: center; gap: 10px; color: var(--navy-950); font-weight: 700; text-decoration: none; width: fit-content; }
.contact-line:hover, .contact-line:focus-visible { color: var(--brand-blue); }
.support-visual { min-height: 320px; border: 1px solid var(--slate-200); border-radius: 28px; background: linear-gradient(145deg, #eff6ff, #ffffff); display: grid; place-items: center; padding: 30px; }
.support-card { width: min(100%, 390px); background: var(--white); border: 1px solid var(--slate-200); border-radius: 18px; padding: 22px; box-shadow: var(--shadow-sm); }
.support-card .status { display: inline-flex; gap: 8px; align-items: center; font-size: 12px; font-weight: 700; color: var(--success); }
.support-card .status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.support-card h3 { margin: 16px 0 8px; font-size: 21px; }
.support-card p { margin: 0; color: var(--slate-600); font-size: 14px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.trust-list { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.trust-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--slate-700); }
.trust-list li::before { content: "✓"; color: var(--brand-blue); font-weight: 900; }
.dbd-card { border: 1px solid var(--slate-200); border-radius: 22px; padding: 24px; background: var(--white); box-shadow: var(--shadow-sm); text-align: center; }
.dbd-card p { margin: 0 0 18px; color: var(--slate-600); font-size: 13px; }
.dbd-card img { max-width: 220px; }

/* FAQ */
.faq-wrap { margin-top: 38px; display: grid; grid-template-columns: .72fr 1.28fr; gap: 50px; align-items: start; }
.faq-list { display: grid; gap: 10px; }
details { border: 1px solid var(--slate-200); border-radius: 14px; background: var(--white); overflow: clip; }
summary { cursor: pointer; list-style: none; padding: 18px 20px; font-weight: 700; color: var(--navy-950); display: flex; justify-content: space-between; gap: 20px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--brand-blue); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "−"; }
.faq-answer { padding: 0 20px 18px; color: var(--slate-600); font-size: 14px; }

/* Contact */
.contact-section { background: linear-gradient(135deg, var(--navy-950), #112d50); color: var(--white); }
.contact-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 58px; align-items: start; }
.contact-section .section-title { color: var(--white); }
.contact-section .section-lead { color: #cbd5e1; }
.contact-section .contact-line { color: var(--white); }
.contact-section .contact-line:hover { color: #bfdbfe; }
.contact-form { background: var(--white); color: var(--slate-950); border-radius: 26px; padding: 28px; }
.contact-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form .checkboxes { display: flex; gap: 8px; flex-wrap: wrap; }
.check-chip { position: relative; }
.check-chip input { position: absolute; opacity: 0; pointer-events: none; }
.check-chip label { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 12px; border: 1px solid var(--slate-300); border-radius: 999px; color: var(--slate-700); font-size: 13px; cursor: pointer; }
.check-chip input:checked + label { background: #eff6ff; border-color: var(--brand-blue); color: var(--brand-blue); font-weight: 700; }
.form-note { margin: 12px 0 0; color: var(--slate-500); font-size: 12px; }
.form-status { min-height: 22px; margin-top: 10px; font-size: 13px; color: var(--success); }

/* Footer */
.footer { padding: 48px 0 26px; background: var(--white); border-top: 1px solid var(--slate-200); }
.footer-grid { display: grid; grid-template-columns: 1.3fr .9fr .8fr .8fr; gap: 36px; }
.footer-logo { width: 220px; }
.footer-title { margin: 0 0 12px; font-size: 13px; font-weight: 800; color: var(--navy-950); text-transform: uppercase; letter-spacing: .06em; }
.footer p, .footer a { font-size: 13px; color: var(--slate-600); }
.footer a { display: block; text-decoration: none; margin-bottom: 7px; }
.footer a:hover, .footer a:focus-visible { color: var(--brand-blue); }
.footer-bottom { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--slate-200); display: flex; justify-content: space-between; gap: 20px; color: var(--slate-500); font-size: 12px; }
.footer-dbd img { max-width: 150px; }

:focus-visible { outline: 3px solid rgba(67,124,230,.35); outline-offset: 3px; }

@media (max-width: 1080px) {
  .main-nav { display: none; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .header-actions .utility-link, .header-actions .btn { display: none; }
  .mobile-toggle { display: inline-grid; place-items: center; }
  .mobile-menu.open { display: block; border-top: 1px solid var(--slate-200); padding: 12px 0 18px; }
  .mobile-menu a { display: block; padding: 11px 0; text-decoration: none; font-weight: 650; color: var(--slate-700); }
  .mobile-menu .btn { margin-top: 10px; color: var(--white); text-align: center; }
  .hero-grid, .expertise-grid, .support-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 42px; }
  .system-map { max-width: 620px; width: 100%; margin-inline: auto; }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .who-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: 1fr; gap: 0; }
  .process::before { width: 2px; height: auto; top: 12px; bottom: 12px; left: 25px; right: auto; }
  .process-step { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding-bottom: 24px; }
  .process-step h3 { margin: 4px 0 5px; }
  .process-step p { grid-column: 2; margin-top: -28px; }
  .pricing-grid, .faq-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-grid > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .container { width: min(calc(100% - 28px), var(--content)); }
  .section { padding: 68px 0; }
  .header-inner { min-height: 68px; gap: 10px; }
  .brand img { width: 166px; }
  .language { padding-inline: 5px; }
  .hero { padding: 64px 0 60px; }
  .hero-copy { font-size: 17px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .system-map { min-height: 360px; padding: 12px; }
  .system-core { width: 158px; min-height: 132px; }
  .map-node { font-size: 11px; padding: 7px 9px; }
  .node-property { left: 10px; top: 68px; }
  .node-airbnb { right: 8px; top: 42px; }
  .node-booking { right: 4px; top: 137px; }
  .node-direct { right: 22px; bottom: 45px; }
  .node-support { left: 8px; bottom: 54px; }
  .map-line { display: none; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item { min-height: 76px; border-bottom: 1px solid var(--slate-200); }
  .trust-item:nth-child(2) { border-right: 0; }
  .compare-grid, .cards-3, .who-grid, .calc-grid, .calc-actions, .contact-form .form-grid { grid-template-columns: 1fr; }
  .compare-card { padding: 24px; }
  .compare-card.highlight { margin-top: 12px; }
  .expertise-tags { grid-template-columns: 1fr; }
  .expertise-platforms { grid-template-columns: 1fr 1fr; }
  .calculator, .contact-form { padding: 22px; border-radius: 20px; }
  .field-full { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child, .footer-grid > :last-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* Legal / utility pages — Phase 6 */
.legal-hero {
  background:
    radial-gradient(circle at 86% 12%, rgba(79,149,209,.20), transparent 30%),
    var(--navy-950);
  color: var(--white);
  padding: 66px 0 58px;
}
.legal-hero .eyebrow { color: #93c5fd; }
.legal-hero h1 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(2.35rem, 5vw, 4.25rem);
  line-height: 1.13;
  letter-spacing: -.035em;
}
.legal-hero p { max-width: 780px; margin: 18px 0 0; color: #dbeafe; font-size: 17px; }
.legal-meta { margin-top: 20px; color: #bfdbfe; font-size: 13px; }
.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 70px;
  align-items: start;
}
.legal-content { max-width: 820px; }
.legal-content h2 { margin: 44px 0 12px; color: var(--navy-950); font-size: 1.48rem; line-height: 1.35; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { margin: 26px 0 8px; font-size: 1.08rem; color: var(--slate-950); }
.legal-content p, .legal-content li { color: var(--slate-700); }
.legal-content ul { padding-left: 1.35rem; }
.legal-content li + li { margin-top: 8px; }
.legal-note {
  margin: 28px 0;
  padding: 18px 20px;
  background: #eff6ff;
  border-left: 4px solid var(--brand-blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--slate-700);
}
.legal-toc {
  position: sticky;
  top: 104px;
  padding: 20px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  background: var(--off-white);
}
.legal-toc strong { display: block; margin-bottom: 10px; color: var(--navy-950); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.legal-toc a { display: block; padding: 7px 0; color: var(--slate-600); text-decoration: none; font-size: 13px; }
.legal-toc a:hover, .legal-toc a:focus-visible { color: var(--brand-blue); }
.utility-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.error-page { min-height: 64vh; display: grid; place-items: center; text-align: center; padding: 70px 0; }
.error-code { margin: 0; color: var(--brand-blue); font-size: clamp(5rem, 16vw, 9rem); line-height: .9; letter-spacing: -.06em; }
.error-page h1 { margin: 18px 0 10px; font-size: clamp(2rem, 5vw, 3.4rem); color: var(--navy-950); }
.error-page p { max-width: 640px; margin: 0 auto; color: var(--slate-600); }
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: 34px; }
  .legal-toc { position: static; order: -1; }
}
@media (max-width: 720px) {
  .legal-hero { padding: 48px 0 44px; }
  .utility-hero-actions { display: grid; grid-template-columns: 1fr; }
  .utility-hero-actions .btn { width: 100%; }
}

/* PHASE 8 production hardening: replaces former inline styles for CSP compatibility */
.calculator-title{margin:0 0 20px;font-size:24px;}
.utility-hero-actions-center{justify-content:center;}
