@import url('./brand.css');

/* Shared waitlist visual language, with selectable, content-driven legal HTML. */
:root { color-scheme: dark; }
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 90% 18%, #143343 0, transparent 52%), var(--fin-background);
  color: var(--fin-body);
  font-family: var(--fin-font);
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
a { color: var(--fin-link); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--fin-text); }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--fin-orange); outline-offset: 4px; border-radius: 4px; }
.skip-link { position: absolute; top: 12px; left: 16px; z-index: 10; transform: translateY(-200%); padding: 12px 20px; border-radius: 8px; background: var(--fin-button); color: white; }
.skip-link:focus { transform: none; }
header.site { max-width: 1200px; margin: 16px auto 0; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.06); border-radius: 20px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
/* Figma's exported wordmark is inverted vertically; match Flutter Transform.flip. */
.brand img { display: block; width: 200px; max-width: 100%; height: auto; transform: scaleY(-1); }
.site-back { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 20px; border: 1px solid #577684; border-radius: 8px; color: white; text-decoration: none; font-size: 1rem; font-weight: 500; }
.site-back:hover { background: var(--fin-button); border-color: var(--fin-button); }
main, footer.site { width: min(880px, calc(100% - 48px)); margin-inline: auto; }
main { margin-block: 72px 64px; }
main:focus { outline: none; }
.page-intro { margin-bottom: 40px; }
.eyebrow { color: var(--fin-link); font-size: .75rem; font-weight: 600; letter-spacing: .16em; margin: 0 0 16px; }
h1, h2, h3 { color: var(--fin-text); font-weight: 600; }
h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.12; letter-spacing: -.035em; margin: 0 0 24px; }
h1::after { content: ''; display: block; width: 56px; height: 3px; background: var(--fin-orange); margin-top: 28px; border-radius: 2px; }
h2 { font-size: 1.375rem; line-height: 1.35; margin: 40px 0 16px; }
main > h2 { padding-top: 28px; border-top: 1px solid var(--fin-line); }
p { margin: 0 0 20px; }
strong { font-weight: 600; color: var(--fin-text); }
main ul { padding-left: 24px; }
main li { padding-left: 8px; margin-bottom: 16px; }
main li::marker { color: var(--fin-teal); }
.stamp { color: var(--fin-muted); font-size: .9375rem; line-height: 1.65; }
.draft { background: #2f2540; color: #ffce98; border: 1px solid #856347; border-left: 3px solid var(--fin-orange); border-radius: 12px; padding: 20px 24px; font-size: .9375rem; }
.contact-block { display: grid; grid-template-columns: 100px minmax(0,1fr); gap: 12px 24px; background: var(--fin-panel); border: 1px solid var(--fin-line); border-radius: 20px; padding: 28px; }
.contact-block dt { color: var(--fin-muted); font-weight: 500; }
.contact-block dd { margin: 0; }
table.plain { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .9375rem; }
table.plain caption { text-align: left; color: var(--fin-muted); padding-bottom: 12px; }
table.plain th, table.plain td { border: 1px solid var(--fin-line); padding: 12px 16px; text-align: left; vertical-align: top; }
table.plain th { color: white; background: var(--fin-panel); font-weight: 500; }
#cookie-declaration, .legal-table, noscript { display: block; overflow-x: auto; }
.linklike { background: none; border: none; padding: 10px 0; color: var(--fin-link); text-decoration: underline; text-underline-offset: .2em; font: inherit; cursor: pointer; min-height: 44px; }
footer.site { border-top: 1px solid var(--fin-line); padding-block: 28px 40px; font-size: .9375rem; }
footer.site ul { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 24px; }
footer.site li { display: flex; align-items: center; }
footer.site a { display: inline-flex; align-items: center; min-height: 44px; }
footer.site [aria-current='page'] { color: white; text-decoration-color: var(--fin-orange); text-decoration-thickness: 2px; }
footer.site .fineprint { color: var(--fin-muted); margin-bottom: 0; }
/* Normal flow reserves the real banner height; sticky bottom keeps the choice
 * visible. Flutter retains its existing measured-height integration. */
.privacy-page > .fc-banner { position: sticky; bottom: 0; }
@media (max-width: 1248px) { header.site { margin-inline: 24px; } }
@media (max-width: 600px) {
  header.site { margin: 12px 16px 0; padding: 14px 16px; border-radius: 16px; }
  .brand img { width: 164px; }
  .site-back { font-size: .875rem; padding: 8px 12px; }
  main, footer.site { width: calc(100% - 40px); }
  main { margin-block: 44px 40px; }
  .page-intro { margin-bottom: 28px; }
  h1 { font-size: clamp(1.625rem, 8vw, 2rem); }
  h2 { font-size: 1.25rem; }
  .contact-block { grid-template-columns: minmax(0,1fr); padding: 22px; gap: 4px; }
  .contact-block dd + dt { margin-top: 12px; }
  .draft { padding: 16px 18px; }
  table.plain { font-size: .875rem; }
  table.plain th, table.plain td { padding: 8px; }
}

.legal-toc ul { list-style: none; padding-left: 0; }
.legal-toc li { margin-bottom: 8px; }
.legal-toc a { display: inline-block; min-height: 44px; padding-block: 8px; }
.legal-table { margin-block: 24px; }

#cookie-categories table { table-layout: fixed; min-width: 880px; overflow-wrap: anywhere; }
#cookie-categories th:nth-child(1) { width: 12%; }
#cookie-categories th:nth-child(2) { width: 15%; }
#cookie-categories th:nth-child(3) { width: 16%; }
#cookie-categories th:nth-child(4) { width: 12%; }
#cookie-categories th:nth-child(5) { width: 10%; }
#cookie-categories th:nth-child(6) { width: 35%; }
