/* AutoCal — legal and info pages (privacy, terms, refunds, cookies, accessibility, delivery, 404) */
:root {
  --navy: #04182a; --green: #0b8445; --green-bright: #25c46b; --green-50: #e9f6ef;
  --ink: #04182a; --ink-2: #3d5566; --ink-3: #5a6f7f; --line: #dfe6e2; --tint: #f2f6f3; --paper: #ffffff;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; font: 400 1rem/1.75 Rubik, system-ui, sans-serif; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: var(--green); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--green-bright); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--navy); color: #fff; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 760px; margin-inline: auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)); }

.top { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { max-width: 1100px; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.top img { display: block; height: 36px; width: auto; }
.top nav { display: flex; gap: 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 500; text-decoration: none; border: 1.5px solid var(--line); color: var(--ink); background: #fff; }
.btn-solid { background: var(--green); border-color: var(--green); color: #fff; }
@media (hover: hover) and (pointer: fine) { .btn:hover { border-color: var(--ink-3); } .btn-solid:hover { background: #096c39; } }

main { padding-block: 32px 64px; }
.eyebrow { margin: 0; font-size: .85rem; font-weight: 500; color: var(--green); }
h1 { margin: 4px 0 6px; font-size: clamp(1.7rem, 5vw, 2.3rem); line-height: 1.2; font-weight: 700; color: var(--navy); text-wrap: balance; }
.updated { margin: 0 0 24px; color: var(--ink-3); font-size: .9rem; }
h2 { margin: 40px 0 8px; font-size: 1.3rem; line-height: 1.35; font-weight: 600; color: var(--navy); }
h3 { margin: 24px 0 4px; font-size: 1.06rem; font-weight: 600; color: var(--navy); }
p, li { max-width: 68ch; }
p { margin: 0 0 12px; }
ul, ol { margin: 0 0 12px; padding-inline-start: 22px; }
li { margin-bottom: 6px; }
li::marker { color: var(--green); }
strong { font-weight: 600; }

.summary { margin: 0 0 28px; padding: 18px 20px; border-radius: 16px; background: var(--tint); border: 1px solid var(--line); }
.summary h2 { margin: 0 0 8px; font-size: 1.05rem; }
.summary ul { margin: 0; }
.summary li { margin-bottom: 4px; }

.toc { margin: 0 0 8px; padding: 0; border: 1px solid var(--line); border-radius: 14px; }
.toc summary { cursor: pointer; padding: 12px 16px; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.toc ol { margin: 0; padding: 0 36px 14px 16px; }
.toc li { margin-bottom: 2px; }

.table-wrap { overflow-x: auto; margin: 0 0 16px; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 520px; }
th, td { text-align: start; vertical-align: top; padding: 10px 14px; border-top: 1px solid var(--line); }
thead th { border-top: 0; background: var(--tint); font-weight: 600; }
@media (max-width: 599px) {
  .table-wrap { overflow: visible; border: 0; border-radius: 0; }
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap td { display: block; min-width: 0; width: 100%; }
  .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-wrap tr { border: 1px solid var(--line); border-radius: 14px; padding: 6px 14px; margin-bottom: 10px; }
  .table-wrap td { border: 0; padding: 6px 0; }
  .table-wrap td::before { content: attr(data-label); display: block; font-size: .8rem; font-weight: 600; color: var(--ink-3); }
}
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; background: var(--tint); padding: 1px 6px; border-radius: 6px; direction: ltr; unicode-bidi: isolate; }

.contact { margin: 12px 0 16px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); }
.contact ul { list-style: none; padding: 0; margin: 0; }
.contact li { margin-bottom: 4px; }
.ltr { direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
[hidden] { display: none !important; }

.foot { background: var(--navy); color: #a9bccb; padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); font-size: .9rem; }
.foot .wrap { max-width: 1100px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 14px; }
.foot a, .foot button { color: #dbe6ec; text-decoration: none; background: none; border: 0; padding: 6px 0; font: inherit; cursor: pointer; min-height: 32px; }
@media (hover: hover) and (pointer: fine) { .foot a:hover, .foot button:hover { color: #fff; text-decoration: underline; } }
.foot p { margin: 0; max-width: none; }

/* 404 */
.nf { min-height: calc(100vh - 64px); min-height: calc(100dvh - 64px); display: grid; place-items: center; text-align: center; padding: 40px 20px; }
.nf img { width: 96px; height: 96px; margin: 0 auto 18px; display: block; }
.nf p { margin-inline: auto; color: var(--ink-2); }
.nf .actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
.callout { margin: 0 0 18px; padding: 16px 18px; border-radius: 14px; background: #fff6e3; border: 1px solid #f0d9a6; color: #4a3500; }
.callout p { margin: 0; }

/* Solution pages (tools/build_seo.py) */
.solution .lead { font-size: 1.12rem; line-height: 1.7; color: var(--ink-2); margin: 8px 0 18px; max-width: 62ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.steps { padding-inline-start: 22px; display: grid; gap: 8px; }
.cta-box { margin: 36px 0 24px; padding: 22px; border-radius: 18px; background: var(--tint); border: 1px solid var(--line); }
.cta-box h2 { margin-top: 0; }
.related ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.related a { display: inline-flex; min-height: 40px; align-items: center; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.qa { border-bottom: 1px solid var(--line); padding: 10px 0; }
.qa summary { cursor: pointer; font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.qa p { margin: 6px 0; }
.chat { display: grid; gap: 8px; padding: 16px; border-radius: 16px; background: #efeae2; max-width: 460px; }
.chat .bubble { margin: 0; padding: 8px 12px; border-radius: 12px; max-width: 85%; line-height: 1.5; }
.chat .in { background: #fff; justify-self: start; }
.chat .out { background: #d9fdd3; justify-self: end; }
