/* Public legal pages (Privacy, Terms, Delete account).
   Design: docs/design/web/Dott Money Legal.dc.html - same tokens as the landing page. */
:root {
  --bg:#FFFDFB; --surface:#FFFFFF; --surface2:#FBF5F0; --ink:#17120E; --muted:#655A52; --faint:#8C8178;
  --line:rgba(23,18,14,.09); --line2:rgba(23,18,14,.18); --brand:#F15A24; --brand-press:#D8480F;
  --accent:#C2410C; --accent-cont:#FFEDE2; --on-accent-cont:#6E2507;
  --inc:#047857; --inc-cont:#E2F4EB; --exp:#BE123C; --exp-cont:#FDE8ED;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Inter, "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
a:hover { color: var(--brand-press); }
.ph { line-height: 1; }

/* Header */
.lg-head { border-bottom: 1px solid var(--line); }
.lg-head .in { max-width: 1120px; margin: 0 auto; height: 64px; display: flex; align-items: center; gap: 12px; padding: 0 24px; }
.lg-logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; margin-right: auto; font-weight: 600; white-space: nowrap; }
.lg-logo:hover { color: var(--ink); }
.lg-mark { width: 24px; height: 28px; flex: none; display: block; }
.wm { font: 700 22px/1 Quicksand, Inter, sans-serif; letter-spacing: .01em; color: var(--ink); }
.wm em { font-style: normal; color: var(--brand); }
.lg-tabs { display: flex; gap: 4px; overflow-x: auto; }
.lg-tabs a { height: 34px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 14px; white-space: nowrap; }
.lg-tabs a:hover { background: var(--surface2); color: var(--ink); }
.lg-tabs a[aria-current="page"] { background: var(--accent-cont); color: var(--on-accent-cont); }

/* Layout */
.lg-wrap { max-width: 1120px; margin: 0 auto; padding: 56px 24px 80px; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 56px; align-items: start; }
.lg-toc { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.lg-toc .t { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.lg-toc a { padding: 6px 10px; border-radius: 6px; color: var(--muted); text-decoration: none; border-left: 2px solid var(--line); }
.lg-toc a:hover { color: var(--ink); border-color: var(--brand); }

article { max-width: 68ch; font-size: 16.5px; line-height: 1.7; }
.kicker { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
h1 { font-size: 44px; margin: 4px 0 6px; letter-spacing: -.03em; line-height: 1.05; font-weight: 600; }
.updated { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
article section { scroll-margin-top: 24px; }
h2 { font-size: 24px; margin: 28px 0 8px; letter-spacing: -.015em; font-weight: 600; line-height: 1.25; }
p { margin: 0 0 14px; text-wrap: pretty; }
ul, ol { margin: 0 0 14px; padding-left: 22px; }
li { margin-bottom: 6px; }
strong, b { font-weight: 600; }
.contact { margin-top: 28px; padding: 18px 20px; border-radius: 14px; background: var(--surface2); font-size: 15px; }
.lg-foot { border-top: 1px solid var(--line); padding: 24px; text-align: center; font-size: 13px; color: var(--faint); }
.lg-foot a { color: inherit; }

/* Delete account */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 10px 0 24px; }
.card { padding: 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); font-size: 15px; line-height: 1.6; }
.card .h { font-weight: 600; margin-bottom: 6px; display: flex; gap: 8px; align-items: center; }
.card ol { margin: 0; padding-left: 20px; }
.card li { margin-bottom: 2px; }
.del { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: 18px; border: 1.5px solid var(--exp); background: var(--surface); margin-bottom: 28px; }
.del h2 { font-size: 22px; margin: 0; }
.del .hint { font-size: 14.5px; color: var(--muted); margin: -6px 0 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; }
.input { min-height: 46px; font: inherit; font-size: 16px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line2); background: var(--bg); color: var(--ink); width: 100%; }
.input:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.input.code { letter-spacing: .4em; font-size: 22px; font-variant-numeric: tabular-nums; max-width: 240px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; }
.check input { accent-color: #BE123C; width: 17px; height: 17px; margin-top: 3px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn-danger { height: 46px; padding: 0 20px; border-radius: 10px; border: 0; background: #BE123C; color: #FFFFFF; font: inherit; font-weight: 600; cursor: pointer; }
.btn-danger:hover { background: #9F1239; }
.btn-danger:disabled { opacity: .6; cursor: default; }
.btn-link { background: none; border: 0; padding: 0 4px; font: inherit; font-size: 14.5px; color: var(--accent); cursor: pointer; text-decoration: underline; }
.btn-link:disabled { color: var(--faint); cursor: default; text-decoration: none; }
.err { display: none; padding: 10px 14px; border-radius: 10px; background: var(--exp-cont); color: var(--exp); font-size: 14.5px; }
.err.show { display: block; }
.ok { display: flex; gap: 14px; padding: 20px; border-radius: 16px; background: var(--inc-cont); color: var(--inc); margin-bottom: 20px; }
.ok .ph { font-size: 26px; }
.ok .h { font-weight: 600; font-size: 17px; }
.ok p { margin: 0; font-size: 15px; }
[hidden] { display: none !important; }

@media (max-width: 899px) {
  .lg-wrap { grid-template-columns: 1fr; padding: 32px 20px 56px; gap: 0; }
  .lg-toc { display: none; }
  h1 { font-size: 34px; }
}
@media (max-width: 520px) {
  .lg-head .in { padding: 0 16px; }
  .lg-logo .wm { display: none; }
  .lg-wrap { padding: 28px 16px 48px; }
  article { font-size: 16px; }
  h1 { font-size: 30px; }
}
