/* Nestars website styles — shared by the home page and the /legal/ pages. */
/* Layout: "Clean Slate", the same look as the app — a light grey page, white cards, Nestars teal for actions,
   one softly tinted band for rhythm. Gold only where something needs attention. */
:root {
  --bg: #f6f7f9; --surface: #ffffff; --surface-2: #f2f4f7;
  --ink: #101828; --ink-soft: #344054; --muted: #5b6475; --line: #e4e7ec; --line-soft: #eef0f3; --line-strong: #d0d5dd;
  --brand: #0f8a6e; /* the logo tile */
  --teal: #0e7d64; --teal-deep: #0c6b56; --teal-wash: #e8f5f1; --teal-ring: rgba(14,125,100,.18); --on-teal: #ffffff;
  --gold: #b54708; --gold-wash: #fff7e6; --gold-line: #fedf89; --gold-ink: #8a5a00; --coral: #b42318;
  --band: #eef4f2; --band-ink: #101828; --band-strong: #101828; --band-muted: #475467; --band-line: #d5e3de; --band-card: #ffffff;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(16,24,40,.05);
  --shadow: 0 1px 3px rgba(16,24,40,.06), 0 12px 28px -14px rgba(16,24,40,.16);
  --font-display: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Twemoji Country Flags', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c111d; --surface: #161b26; --surface-2: #1f242f;
    --ink: #f5f5f6; --ink-soft: #cecfd2; --muted: #94969c; --line: #333741; --line-soft: #1f242f; --line-strong: #464b55;
    --teal: #3cc4a2; --teal-deep: #4fd1b0; --teal-wash: #123b33; --teal-ring: rgba(60,196,162,.25); --on-teal: #06281f;
    --gold: #f5b84f; --gold-wash: #2b2314; --gold-line: #5c4515; --gold-ink: #f5c87a; --coral: #f97066;
    --band: #111c1f; --band-ink: #f5f5f6; --band-strong: #ffffff; --band-muted: #a6b0ad; --band-line: #263a36; --band-card: #161b26;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.35);
    --shadow: 0 1px 3px rgba(0,0,0,.3), 0 12px 28px -14px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c111d; --surface: #161b26; --surface-2: #1f242f;
  --ink: #f5f5f6; --ink-soft: #cecfd2; --muted: #94969c; --line: #333741; --line-soft: #1f242f; --line-strong: #464b55;
  --teal: #3cc4a2; --teal-deep: #4fd1b0; --teal-wash: #123b33; --teal-ring: rgba(60,196,162,.25); --on-teal: #06281f;
  --gold: #f5b84f; --gold-wash: #2b2314; --gold-line: #5c4515; --gold-ink: #f5c87a; --coral: #f97066;
  --band: #111c1f; --band-ink: #f5f5f6; --band-strong: #ffffff; --band-muted: #a6b0ad; --band-line: #263a36; --band-card: #161b26;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.35);
  --shadow: 0 1px 3px rgba(0,0,0,.3), 0 12px 28px -14px rgba(0,0,0,.6);
  color-scheme: dark;
}

/* Inter (SIL Open Font License, fonts/Inter-OFL.txt), served from this site — no font requests to anyone else.
   Latin first; the Latin-extended file carries the rupee sign (₹). */
@font-face { font-family: 'Inter'; src: url('fonts/Inter-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; src: url('fonts/Inter-latin-ext.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Country-flag emoji for the phone-code dropdown — Windows has no flag glyphs (Chrome/Edge show "IN").
   Covers only the regional-indicator range. Flags: Twemoji (CC-BY 4.0) via country-flag-emoji-polyfill (MIT). */
@font-face { font-family: 'Twemoji Country Flags'; src: url('fonts/TwemojiCountryFlags.woff2') format('woff2'); unicode-range: U+1F1E6-1F1FF; font-display: swap; }

* { box-sizing: border-box; }
[hidden] { display: none !important; } /* the hidden attribute must win over component display rules */
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .display { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: 20px; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body); font-weight: 600; font-size: 15px; padding: 11px 18px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease; white-space: nowrap; }
.btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.btn-primary { background: var(--teal); color: var(--on-teal); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--teal-deep); }
.btn-ghost { background: var(--surface); color: var(--ink-soft); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-lg { padding: 13px 24px; font-size: 16px; }

/* ---- header ---- */
header.site { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--bg); background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); } /* solid first: older browsers (no color-mix) keep an opaque header */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.logo { width: 34px; height: 34px; border-radius: 9px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 18px; font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--ink-soft); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--teal-deep); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-soft); display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { color: var(--ink); background: var(--surface-2); }
/* phones/tablets: the section links and the theme switch move into a menu panel under the header bar */
.menu-btn { display: none; }
.menu-btn .i-close, .menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
.site-menu { position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.site-menu .wrap { display: grid; padding-block: 4px 8px; }
.site-menu a, .site-menu button { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); font-family: var(--font-body); font-size: 16px; font-weight: 600; text-align: left; cursor: pointer; }
.site-menu .wrap > :last-child { border-bottom: 0; }
.site-menu a:hover, .site-menu button:hover { color: var(--teal-deep); }
.site-menu button svg { color: var(--muted); }
.site-menu .menu-login { display: none; }
@media (min-width: 861px) { .site-menu { display: none !important; } }
@media (max-width: 860px) { .nav-links, #theme-toggle { display: none; } .menu-btn { display: grid; } }
@media (max-width: 480px) { .nav { gap: 10px; } .nav-right { gap: 8px; } .nav-right .btn { padding: 9px 13px; font-size: 14px; } .brand { font-size: 18px; gap: 9px; } }
@media (max-width: 400px) { .nav-right { gap: 6px; } .nav-right .btn { padding: 8px 11px; } header.site .brand { font-size: 17px; gap: 8px; } header.site .logo { width: 32px; height: 32px; } .menu-btn { width: 36px; height: 36px; } }
@media (max-width: 350px) { .nav-right .btn-ghost { display: none; } .site-menu .menu-login { display: flex; } } /* smallest phones: Log in moves into the menu */

/* ---- section rhythm ---- */
section { padding-block: clamp(56px, 8vw, 92px); }
section[id] { scroll-margin-top: 64px; } /* menu/footer jumps land below the sticky header */
.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-deep); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(28px, 4.4vw, 40px); margin-top: 12px; }
.section-head p { color: var(--ink-soft); font-size: 17px; margin-top: 14px; }

/* ---- hero ---- */
.hero { padding-top: clamp(44px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 64px); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background:
    radial-gradient(60% 55% at 85% 10%, var(--teal-wash), transparent 70%);
  opacity: .8; pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 54px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft); font-size: 13px; font-weight: 600; padding: 6px 13px; border-radius: 999px; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.hero h1 { font-size: clamp(34px, 5.6vw, 56px); font-weight: 700; letter-spacing: -0.03em; margin-top: 20px; }
.hero h1 .hl { color: var(--teal-deep); }
.hero .lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--ink-soft); margin-top: 20px; max-width: 34ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-top: 30px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--muted); font-weight: 500; }
.hero-trust svg { color: var(--teal); flex: none; }

/* browser frame for shots */
.frame { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.frame-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.frame-bar .url { margin-left: 10px; font-size: 12px; color: var(--muted); background: var(--bg); border: 1px solid var(--line); padding: 3px 12px; border-radius: 7px; font-weight: 500; }
.frame img { width: 100%; height: auto; display: block; }
.hero-shot { transform: perspective(1600px) rotateY(-3deg); }
@media (max-width: 760px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } .hero-shot { transform: none; } } /* phones: picture below the text */

/* ---- trust strip ---- */
.strip { background: var(--surface); border-block: 1px solid var(--line); }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 30px; }
.strip-item { display: flex; gap: 13px; align-items: flex-start; }
.strip-item .ico { flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--teal-wash); color: var(--teal-deep); display: grid; place-items: center; }
.strip-item b { display: block; font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.strip-item span { display: block; font-size: 13px; line-height: 1.5; color: var(--muted); margin-top: 2px; }
@media (max-width: 760px) { .strip-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .strip-grid { grid-template-columns: 1fr; gap: 18px; padding-block: 26px; } }

/* ---- features ---- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feat .ico { width: 42px; height: 42px; border-radius: 10px; background: var(--teal-wash); color: var(--teal-deep); display: grid; place-items: center; margin-bottom: 16px; }
.feat h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.feat p { color: var(--ink-soft); font-size: 14.5px; margin-top: 8px; }
.feat .tag { display: inline-block; margin-top: 14px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 900px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feat-grid { grid-template-columns: 1fr; } }
/* A short last row shares the width instead of leaving a hole: two cards on three columns get half each,
   and one card on two columns spans both. */
@media (min-width: 901px) {
  .feat-grid { grid-template-columns: repeat(6, 1fr); }
  .feat-grid > .feat { grid-column: span 2; }
  .feat-grid > .feat:nth-child(3n+1):nth-last-child(2),
  .feat-grid > .feat:nth-child(3n+1):nth-last-child(2) + .feat { grid-column: span 3; }
}
@media (min-width: 561px) and (max-width: 900px) { .feat-grid > .feat:last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* ---- screenshots ---- */
.shots { background: var(--surface-2); }
.shot-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; }
.shot-row + .shot-row { margin-top: 22px; }
.shot-row.flip { grid-template-columns: 1fr 1.4fr; }
.shot-cap { align-self: center; padding: 8px 4px; }
.shot-cap .eyebrow { color: var(--teal-deep); }
.shot-cap h3 { font-size: 22px; margin-top: 10px; }
.shot-cap p { color: var(--ink-soft); margin-top: 10px; font-size: 15px; }
@media (max-width: 820px) {
  .shot-row, .shot-row.flip { grid-template-columns: 1fr; }
  .shot-row.flip .frame { order: -1; }
}

/* ---- band / why ---- */
.band { background: var(--band); color: var(--band-ink); border-block: 1px solid var(--band-line); }
.band .eyebrow { color: var(--teal-deep); }
.band h2 { font-size: clamp(27px, 4vw, 38px); max-width: 18ch; margin-top: 12px; }
.band .why-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.band p.big { font-size: 18px; color: var(--band-ink); margin-top: 18px; max-width: 48ch; }
.band .note { color: var(--band-muted); font-size: 14.5px; margin-top: 16px; max-width: 48ch; }
.band .stat-col { display: grid; gap: 16px; }
.band .statline { border: 1px solid var(--band-line); border-radius: var(--radius); padding: 18px 20px; background: var(--band-card); }
.band .statline b { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--band-strong); display: block; }
.band .statline span { display: block; color: var(--band-muted); font-size: 13.5px; line-height: 1.5; margin-top: 4px; }
@media (max-width: 820px) { .band .why-grid { grid-template-columns: 1fr; gap: 30px; } }

/* ---- pricing ---- */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--teal); box-shadow: var(--shadow); position: relative; }
.plan .badge { position: absolute; top: -12px; left: 22px; background: var(--gold-wash); border: 1px solid var(--gold-line); color: var(--gold-ink); font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.plan .pname { font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-deep); }
.plan .price { display: flex; align-items: baseline; gap: 4px; margin-top: 12px; }
.plan .price .amt { font-family: var(--font-display); font-weight: 700; font-size: 34px; letter-spacing: -0.02em; }
.plan .price .per { color: var(--muted); font-size: 14px; font-weight: 500; }
.plan .cap { color: var(--ink-soft); font-size: 14px; margin-top: 6px; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 10px; }
.plan li { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); }
.plan li svg { color: var(--teal); flex: none; margin-top: 3px; }
.plan .btn { margin-top: auto; justify-content: center; }
.price-foot { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 26px; }
@media (max-width: 900px) { .price-grid { grid-template-columns: repeat(2, 1fr); } .plan .badge { left: 22px; } }
@media (max-width: 480px) { .price-grid { grid-template-columns: 1fr; } }

/* ---- get started ---- */
.signup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.input, .phone-in input { width: 100%; font-family: var(--font-body); font-size: 15px; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); }
.input:focus, .phone-in input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-ring); }
.phone-in { display: flex; gap: 8px; }
.id-switch { display: flex; gap: 4px; padding: 3px; background: var(--surface-2); border-radius: 10px; margin-bottom: 8px; }
.id-switch button { flex: 1; border: 0; background: transparent; padding: 8px 10px; border-radius: 8px; font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.id-switch button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.id-switch button:focus-visible { outline: 3px solid var(--teal); outline-offset: 1px; }
.phone-in .cc { flex: none; width: 108px; font-family: var(--font-body); font-size: 15px; padding: 11px 8px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; color: var(--ink); cursor: pointer; }
.phone-in .cc:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-ring); }
@media (max-width: 860px), (pointer: coarse) { .input, .phone-in input, .phone-in .cc { font-size: 16px; } } /* iPhone Safari zooms into fields under 16px */
.steps { display: grid; gap: 18px; }
.step { display: flex; gap: 15px; }
.step .num { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--teal-wash); color: var(--teal-deep); font-family: var(--font-display); font-weight: 700; display: grid; place-items: center; }
.step b { font-family: var(--font-display); font-size: 16px; font-weight: 600; }
.step p { color: var(--ink-soft); font-size: 14px; margin-top: 3px; }
#su-error a { text-decoration: underline; font-weight: 600; }
@media (max-width: 820px) { .signup-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---- footer ---- */
footer { background: var(--surface); color: var(--muted); border-top: 1px solid var(--line); padding-block: 46px; }
.foot-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
footer .brand { color: var(--ink); }
footer .foot-tag { max-width: 34ch; font-size: 14px; margin-top: 14px; }
footer nav { display: flex; gap: 46px; flex-wrap: wrap; }
footer nav div { display: grid; gap: 9px; align-content: start; }
footer nav b { color: var(--ink); font-family: var(--font-display); font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 3px; }
footer nav a { color: var(--muted); font-size: 14px; }
footer nav a:hover { color: var(--teal-deep); }
.foot-bar { border-top: 1px solid var(--line); margin-top: 34px; padding-top: 20px; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .hero-shot { transform: none; } }

/* ---- compliance (home page #compliance) ---- */
.compliance { border-top: 1px solid var(--line); }
.comp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 32px; }
.comp-item { display: flex; gap: 14px; align-items: flex-start; }
.comp-item .ico { flex: none; width: 40px; height: 40px; border-radius: 11px; background: var(--teal-wash); color: var(--teal-deep); display: grid; place-items: center; }
.comp-item h3 { font-size: 17px; }
.comp-item p { color: var(--ink-soft); font-size: 14.5px; margin-top: 6px; }
.comp-links { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 14.5px; }
.comp-links a { color: var(--teal-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 900px) { .comp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .comp-grid { grid-template-columns: 1fr; } }

/* ---- legal pages (/legal/…) ---- */
.legal-page { padding-block: 36px 72px; }
.legal-page .wrap { max-width: 800px; }
.legal-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.legal-tabs a { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); }
.legal-tabs a:hover { background: var(--surface-2); color: var(--ink); }
.legal-tabs a[aria-current="page"] { background: var(--teal-wash); border-color: transparent; color: var(--teal-deep); }
.legal-title { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.legal-title h1 { font-size: clamp(28px, 5vw, 36px); }
.legal-updated { color: var(--muted); font-size: 13px; font-weight: 600; margin-top: 8px; }
.legal-lead { color: var(--ink-soft); font-size: 16.5px; line-height: 1.65; margin-top: 14px; }
.legal-section { padding-block: 0; margin-top: 30px; } /* not a page section: no big section padding */
.legal-section h2 { font-size: 19px; letter-spacing: -0.01em; margin-bottom: 10px; }
.legal-sec-n { color: var(--teal); }
.legal p, .legal li { color: var(--ink-soft); font-size: 15px; line-height: 1.72; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 22px; display: grid; gap: 7px; }
.legal a { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--teal); }
.legal b { color: var(--ink); }
.legal-address { font-style: normal; display: grid; gap: 2px; margin: 0 0 12px; color: var(--ink-soft); font-size: 15px; line-height: 1.5; }
.legal-callout { background: var(--gold-wash); border: 1px solid var(--gold-line); border-radius: 12px; padding: 14px 16px; }
.legal-note { color: var(--muted) !important; font-size: 13px !important; }
.legal-credits { margin-top: 32px !important; padding-top: 16px; border-top: 1px solid var(--line); }
.legal-contact { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 0 0 12px; }
.legal-contact p { margin: 0 0 4px; }
.legal-contact p:last-child { margin-bottom: 0; }
.legal-index { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.legal-index-card { display: grid; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; text-decoration: none !important; }
.legal-index-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }

/* ---- guide pages (/guides/…): legal-page shell + sub-headings, nested lists and a sources table ---- */
.guide .legal-title .legal-callout { margin: 16px 0 0; }
.guide h3 { font-size: 16.5px; margin: 22px 0 10px; }
.guide ul ul { margin: 7px 0 0; }
.guide-table { margin: 4px 0 12px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.guide-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.guide-table th, .guide-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); color: var(--ink-soft); line-height: 1.55; }
.guide-table th { background: var(--surface-2); color: var(--muted); font-size: 12.5px; font-weight: 600; }
.guide-table tr:last-child td { border-bottom: 0; }
.guide-table td:first-child { width: 48%; }
.guide-table a { overflow-wrap: anywhere; } /* long source URLs wrap instead of widening the page */
@media (max-width: 560px) { /* phones: each source becomes a stacked card */
  .guide-table thead { display: none; }
  .guide-table tr { display: block; padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .guide-table tr:last-child { border-bottom: 0; }
  .guide-table td { display: block; width: auto !important; padding: 0; border: 0; }
  .guide-table td + td { margin-top: 4px; font-size: 13px; }
}
.legal ol { margin: 0 0 12px; padding-left: 22px; display: grid; gap: 7px; }

/* ---- the calculator on /guides/electricity-bill-for-tenants/ (calculator.js) ---- */
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.calc-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; }
.calc .field { margin-bottom: 12px; align-content: start; }
.calc .input[aria-invalid="true"] { border-color: var(--coral); }
.legal .calc-err { color: var(--coral); font-size: 13px; margin: 0; }
.calc-out { display: grid; gap: 4px; }
.calc-out:not(:empty) { border-top: 1px solid var(--line); padding-top: 12px; }
.legal .calc-out p { margin: 0; color: var(--ink); }
.legal .calc-out .calc-total { font-weight: 700; }
.legal .calc-out .calc-warn { color: var(--coral); font-weight: 600; }
@media (max-width: 640px) { .calc-fields { grid-template-columns: 1fr; } }
.legal-index-card b { font-family: var(--font-display); font-size: 16px; font-weight: 600; }
.legal-index-card .muted { color: var(--muted); font-size: 13px; line-height: 1.5; }

/* FAQ (Issue 116) */
.faq { border-top: 1px solid var(--line); }
.faq-groups { display: grid; gap: 34px; max-width: 860px; }
.faq-group h3 { font-size: 18px; margin-bottom: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); }
.faq-item + .faq-item { margin-top: 10px; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; font-weight: 600; font-size: 16px; line-height: 1.4; color: var(--ink); border-radius: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ''; flex: none; width: 9px; height: 9px; margin-right: 4px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-3px) rotate(45deg); transition: transform .15s; }
.faq-item[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq-item summary:hover { color: var(--teal-deep); }
.faq-item summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.faq-a { padding: 0 18px 16px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.6; }
.faq-a a, .faq .section-head p a { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 480px) { .faq-item summary { padding: 14px; font-size: 15px; } .faq-a { padding: 0 14px 14px; font-size: 15px; } }
/* With FAQ as a fifth link, the top menu keeps each label on one line and tightens its gaps just above the
   phone-menu width ("Why Nestars" wrapped at 861 px). */
.nav-links a { white-space: nowrap; }
@media (min-width: 861px) and (max-width: 960px) { .nav-links { gap: 18px; } }
/* /FAQ */
