/* Shared stylesheet for the static legal pages (terms / privacy /
   accessibility statement). Plain CSS, no build step: this file is served
   as-is from public/. Values are copied from the app's design tokens
   (see docs/design.md) — this file cannot import the Tailwind @theme block. */

@font-face {
  font-family: "OS Aran";
  src: url("./fonts/osaran400-web.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "OS Aran";
  src: url("./fonts/osaran600-web.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --sky-top: #73d7ff;
  --sky-bottom: #b9deff;
  --brand-text: #05803a;
  --ink-base: #1c1c1e;
  --ink-soft: #2c2c2e;
  --ink-muted: #5a5a5e;
  --surface-base: #ffffff;
  --surface-muted: #f5f5f5;
  --focus: #0b5cab;
  --radius-md: 0.875rem;
  --radius-lg: 1.375rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --measure: 68ch;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--surface-base);
  color: var(--ink-base);
  font-family: "Assistant", "OS Aran", sans-serif;
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.65;
  display: flex;
  flex-direction: column;
}

/* Skip link — first thing in the tab order, visible only when focused. */
.skip-link {
  position: absolute;
  inset-inline-start: 50%;
  top: -100%;
  transform: translateX(50%);
  z-index: 2000;
  background: #000;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 0.75rem 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Header — the sky gradient with the logo and a small policy nav. */
.site-header {
  background: linear-gradient(180deg, var(--sky-top), var(--sky-bottom));
  padding: var(--gutter);
}

.site-header__bar {
  max-width: var(--measure);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
}

.site-header__logo img {
  width: 5.72rem;
  height: auto;
  display: block;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 0.75rem;
  font-size: 0.9375rem;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-nav a[aria-current="page"] {
  color: var(--brand-text);
  font-weight: 600;
}

.site-nav li[aria-hidden="true"] {
  color: rgba(28, 28, 30, 0.3);
}

/* Main content */
main {
  flex: 1;
}

.legal {
  max-width: var(--measure);
  margin-inline: auto;
  padding: var(--gutter);
}

.legal h1 {
  font-family: "OS Aran", sans-serif;
  font-weight: 600;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink-base);
  margin: 0 0 1rem;
}

.legal h2 {
  font-family: "OS Aran", sans-serif;
  font-weight: 600;
  font-size: clamp(1.375rem, 2.5vw, 1.875rem);
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--ink-base);
  margin: 2.25rem 0 0.75rem;
}

.legal p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.legal .updated {
  color: var(--ink-muted);
  font-weight: 600;
}

.legal strong {
  color: var(--ink-base);
  font-weight: 600;
}

.legal a {
  color: var(--brand-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal ul {
  margin: 0 0 1rem;
  padding-inline-start: 1.5rem;
}

.legal li {
  margin: 0 0 0.5rem;
  color: var(--ink-soft);
}

/* Footer */
.site-footer {
  background: var(--surface-base);
  border-top: 1px solid #e0e0e0;
  padding: 1.5rem var(--gutter);
}

.site-footer__inner {
  max-width: var(--measure);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink-muted);
  font-size: 0.875rem;
}

.site-footer nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 0.75rem;
}

.site-footer a {
  color: var(--ink-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer li[aria-hidden="true"] {
  color: #ccc;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .skip-link {
    display: none !important;
  }
  .legal {
    max-width: none;
    padding: 0;
  }
}
