/* Styles for the static legal pages (privacy, terms, business, delete-account and the app privacy pages).
   Same tokens, header and footer as the Angular site in src/styles.scss. The policy text itself is untouched. */
:root {
  --ivory: #faf9f5; --paper: #f2f0e9; --paper-2: #ebe8df; --ink: #1f1e1c; --ink-2: #46433e; --muted: #6b675f;
  --line: #e4e0d6; --line-strong: #d3cec2; --clay: #c2603d; --clay-ink: #a14a2b; --clay-soft: #f3e4da;
  --serif: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: 24px; --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 8px; background: var(--ink); color: var(--ivory); text-decoration: none; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 249, 245, 0.88); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 1.3rem; font-weight: 500; letter-spacing: -0.012em; white-space: nowrap; }
.brand img { width: 30px; height: 30px; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { padding: 8px 12px; border-radius: 8px; color: var(--ink-2); font-size: 0.96rem; font-weight: 500; text-decoration: none; transition: background-color .2s, color .2s; }
.site-nav a:hover { color: var(--ink); background: var(--paper); }
.menu-btn { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; }
.menu-btn span.bar, .menu-btn span.bar::before, .menu-btn span.bar::after { display: block; width: 20px; height: 1.5px; background: currentColor; position: relative; transition: transform .25s var(--ease), background-color .2s; }
.menu-btn span.bar::before, .menu-btn span.bar::after { content: ''; position: absolute; left: 0; }
.menu-btn span.bar::before { top: -6px; } .menu-btn span.bar::after { top: 6px; }
.menu-btn[aria-expanded='true'] span.bar { background: transparent; }
.menu-btn[aria-expanded='true'] span.bar::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded='true'] span.bar::after { transform: translateY(-6px) rotate(-45deg); }

/* legal content: the original markup of each page lives inside main.legal */
main.legal { padding: clamp(36px, 6vw, 72px) var(--gutter) clamp(56px, 8vw, 96px); }
main.legal > *, main.legal .container, main.legal .content-shell { max-width: 760px; margin-left: auto; margin-right: auto; padding-left: 0; padding-right: 0; }
main.legal section, main.legal article, main.legal .page { padding: 0; background: none; border: 0; box-shadow: none; }
main.legal section + section { margin-top: 32px; }
main.legal h1 { margin: 0 0 14px; font-family: var(--serif); font-weight: 400; font-size: clamp(2.3rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: -0.02em; }
main.legal h2 { margin: 2.2em 0 0.6em; font-family: var(--serif); font-weight: 400; font-size: clamp(1.45rem, 2.4vw, 1.85rem); line-height: 1.2; letter-spacing: -0.012em; }
main.legal h3 { margin: 1.6em 0 0.4em; font-size: 1.05rem; font-weight: 600; }
main.legal p, main.legal li, main.legal dd { color: var(--ink-2); }
main.legal p { margin: 0 0 1em; }
main.legal ul, main.legal ol { margin: 0 0 1.2em; padding-left: 1.3em; }
main.legal li { margin-bottom: 0.4em; }
main.legal li::marker { color: var(--clay); }
main.legal strong { color: var(--ink); font-weight: 600; }
main.legal a { color: var(--clay-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
main.legal .meta, main.legal .lead { color: var(--muted); font-size: 1rem; margin-bottom: 2em; padding-bottom: 1.6em; border-bottom: 1px solid var(--line); }
main.legal .lead { color: var(--ink-2); font-size: 1.12rem; }
main.legal .eyebrow { display: block; margin-bottom: 10px; color: var(--muted); font-size: 0.95rem; }
main.legal table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 0.95rem; display: block; overflow-x: auto; }
main.legal th, main.legal td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
main.legal th { background: var(--paper); font-weight: 600; }
main.legal .identity-card { padding: 20px 22px; margin: 0 0 1.6em; border-radius: 14px; background: var(--paper); }
main.legal .identity-card p:last-child { margin-bottom: 0; }
main.legal dl.details { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr); margin: 0 0 1.6em; border-top: 1px solid var(--line); }
main.legal dl.details dt, main.legal dl.details dd { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
main.legal dl.details dt { font-weight: 600; padding-right: 20px; }
main.legal .detail-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
main.legal .detail-list article { padding: 20px 0; border-bottom: 1px solid var(--line); }
main.legal .detail-list h3 { margin-top: 0; }
main.legal .detail-list p { margin: 0; }
main.legal .hero { padding: 0; }

/* footer */
.site-footer { margin-top: clamp(40px, 6vw, 72px); padding: clamp(48px, 7vw, 80px) 0 32px; background: var(--paper); color: var(--ink-2); font-size: 0.95rem; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 36px 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line-strong); }
.site-footer__grid h2 { margin: 0 0 14px; font-size: 0.92rem; font-weight: 600; color: var(--ink); }
.site-footer__grid ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.site-footer__grid a { text-decoration: none; }
.site-footer__grid a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.site-footer__about { display: grid; gap: 14px; align-content: start; max-width: 24em; }
.site-footer__about p { margin: 0; }
.site-footer__about .mail { color: var(--clay-ink); text-decoration: underline; text-underline-offset: 3px; }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; color: var(--muted); font-size: 0.88rem; }
.site-footer__base p { margin: 0; }

@media (max-width: 980px) {
  .site-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__about { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  body { font-size: 1rem; }
  .menu-btn { display: inline-flex; }
  .site-nav { position: absolute; top: 68px; left: 0; right: 0; display: grid; gap: 0; padding: 8px var(--gutter) 20px; background: var(--ivory); border-bottom: 1px solid var(--line); box-shadow: 0 24px 32px -24px rgba(31, 30, 28, .25); opacity: 0; transform: translateY(-6px); visibility: hidden; transition: opacity .2s, transform .2s var(--ease), visibility .2s; }
  .site-nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .site-nav.is-open { opacity: 1; transform: none; visibility: visible; }
  main.legal dl.details { grid-template-columns: minmax(0, 1fr); }
  main.legal dl.details dt { border-bottom: 0; padding-bottom: 0; }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
