/* Legal and support pages. Brand tokens: brand/design.md. Layout: brand/layout.md */
:root {
  --bg:          #0A0A0A;
  --surface:     #151515;
  --card:        #1F1F1F;
  --primary:     #1A1A1A;
  --text:        #FFFFFF;
  --text-2:      #B3B3B3;
  --text-3:      #666666;
  --gray:        #808080;
  --gray-light:  #E5E5E5;
  --gray-dark:   #404040;
  --glass-border: rgba(255, 255, 255, 0.10);
  --gold:        #FFD700;

  --r-feature:   45px;
  --r-nav:       52px;
  --f-head: "Montserrat", system-ui, sans-serif;
  --f-body: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* Nav: the same floating pill as the landing page */
.nav { position: sticky; top: 0; z-index: 10; padding-top: 12px; }
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 8px 8px 22px;
  border-radius: var(--r-nav);
  background: rgba(21, 21, 21, 0.7);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 18px; text-decoration: none; }

/* Smallest phones: keep the wordmark and Download apart */
@media (max-width: 359px) {
  .brand { gap: 8px; font-size: 15px; }
  .brand img { height: 24px; width: auto; }
  .nav-bar { padding-left: 16px; }
  .nav-bar > .btn { padding: 8px 14px; font-size: 13px; }
}

/* Get blessed | For blessers (same as /assets/site.css) */
.nav-bar { display: grid; grid-template-columns: 1fr auto 1fr; }
.nav-bar .brand { justify-self: start; }
.nav-bar > .btn { justify-self: end; }
.switch { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bg); border: 1px solid var(--glass-border); }
.switch a {
  padding: 8px 18px;
  border-radius: 999px;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--text-2);
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: color 150ms;
}
.switch a:hover { color: var(--text); }
.switch-row { display: none; }
/* Page switch cross-fade, as in site.css (both pages must opt in) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 200ms; }
}
@media (max-width: 719px) {
  .nav-bar { grid-template-columns: 1fr auto; }
  .nav-bar .switch { display: none; }
  /* Compact and centered, so it reads as a control, not a second bar */
  .switch-row { display: flex; justify-content: center; padding-top: 12px; }
  .switch-row .switch { padding: 3px; }
  .switch-row .switch a { padding: 7px 16px; font-size: 13px; }
}
.brand img { height: 28px; width: auto; }
.wordmark { font-family: var(--f-head); font-weight: 300; letter-spacing: 1.5px; color: var(--text); }
.wordmark .dot { color: var(--gold); font-weight: 900; letter-spacing: 0; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--gray-dark);
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0;
  text-decoration: none;
  color: var(--text);
  transition: transform 150ms ease-out, background-color 150ms, color 150ms;
}
.btn:hover { background: var(--text); color: var(--primary); border-color: var(--text); }
.btn:active { transform: scale(0.96); transition-duration: 80ms; }

/* Document */
.doc { max-width: 680px; margin: 0 auto; padding: clamp(56px, 9vw, 96px) 0 clamp(72px, 9vw, 90px); }
.eyebrow { font-family: var(--f-head); font-weight: 800; font-size: 12px; line-height: 1; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
h1 { margin: 20px 0 12px; font-family: var(--f-head); font-weight: 800; font-size: clamp(36px, 6vw, 56px); line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; }
h1 .dot { color: var(--gold); }
.updated { margin: 0; color: var(--text-3); font-size: 14px; }
.lede { margin: 32px 0 0; font-size: clamp(18px, 1.6vw, 20px); line-height: 1.45; color: var(--text-2); text-wrap: pretty; }

h2 { margin: 56px 0 12px; font-family: var(--f-head); font-weight: 800; font-size: clamp(22px, 2.4vw, 26px); line-height: 1.2; letter-spacing: -0.017em; scroll-margin-top: 96px; }
h3 { margin: 28px 0 8px; font-family: var(--f-head); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
p, li { color: var(--text-2); text-wrap: pretty; }
p { margin: 0 0 14px; }
ul { margin: 0 0 14px; padding-left: 20px; }
li { margin-bottom: 8px; }
li::marker { color: var(--gray-dark); }
strong { color: var(--text); font-weight: 500; }
.doc a { color: var(--text); text-decoration: underline; text-decoration-color: var(--gray-dark); text-underline-offset: 3px; }
.doc a:hover { text-decoration-color: var(--text); }

/* Contents */
.toc { margin: 40px 0 0; padding: 24px 28px; border-radius: 30px; background: var(--surface); border: 1px solid var(--glass-border); }
.toc ol { margin: 0; padding-left: 20px; columns: 2 220px; column-gap: 32px; }
.toc li { margin: 0 0 6px; break-inside: avoid; }
.toc a { text-decoration: none; color: var(--text-2); }
.toc a:hover { color: var(--text); }

/* A highlighted box for the one thing to do (support, delete account) */
.panel { margin: 32px 0; padding: 28px; border-radius: 30px; background: var(--surface); border: 1px solid var(--glass-border); }
.panel h2 { margin-top: 0; }
.panel p:last-child, .panel ol:last-child { margin-bottom: 0; }
.steps { margin: 0 0 14px; padding-left: 22px; }
.steps li { padding-left: 4px; }
.mail { font-family: var(--f-head); font-weight: 700; font-size: 18px; letter-spacing: 0; }

/* Draft markers: remove before launch */
.draft {
  margin: 0 0 32px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px dashed rgba(255, 215, 0, 0.45);
  color: var(--text-2);
  font-size: 14px;
}
.draft strong { color: var(--gold); }
mark.todo { padding: 0 4px; border-radius: 4px; background: rgba(255, 215, 0, 0.14); color: var(--gold); }

/* Footer: same as the landing page */
footer { padding: 0 0 48px; }
footer .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-top: 40px;
  border-top: 1px solid var(--glass-border);
  font-family: var(--f-head);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0;
  color: var(--text-2);
}
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; }
footer a { text-decoration: none; }
footer a:hover, footer a[aria-current] { color: var(--text); }
footer .legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-family: var(--f-body); font-weight: 400; font-size: 13px; color: var(--gray); }
footer .legal a:hover, footer .legal a[aria-current] { color: var(--text-2); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
