/* Tokens from packages/ui/design-system.ts */
:root {
  /* Brand */
  --color-primary: hsl(198, 86%, 53%);
  --color-secondary: hsl(270, 70%, 60%);

  /* Greys */
  --grey-100: hsl(198, 25%, 98%);
  --grey-200: hsl(198, 22%, 94%);
  --grey-300: hsl(198, 20%, 88%);
  --grey-400: hsl(198, 18%, 80%);
  --grey-500: hsl(198, 16%, 60%);
  --grey-600: hsl(198, 15%, 40%);
  --grey-700: hsl(198, 18%, 25%);
  --grey-800: hsl(198, 22%, 15%);
  --grey-900: hsl(198, 25%, 10%);

  /* Surface & text */
  --color-background: hsl(198, 20%, 98%);
  --color-surface: hsl(198, 20%, 100%);
  --color-on-surface: hsl(198, 22%, 15%);
  --color-on-surface-variant: hsl(198, 15%, 40%);
  --color-surface-container-low: hsl(198, 25%, 98%);
  --color-surface-container-high: hsl(198, 22%, 94%);
  --color-outline: hsl(198, 18%, 80%);
  --color-outline-variant: hsl(198, 22%, 94%);

  /* Accents */
  --color-error: hsl(0, 84%, 60%);
  --color-success: hsl(142, 71%, 45%);
  --color-warning: hsl(38, 92%, 50%);

  /* Semantic aliases */
  --bg: var(--color-background);
  --surface: var(--color-surface);
  --border: var(--color-outline);
  --border-light: var(--color-outline-variant);
  --text-primary: var(--color-on-surface);
  --text-secondary: var(--color-on-surface-variant);
  --text-tertiary: var(--grey-500);
  --accent: var(--color-primary);
  --accent-bg: hsla(198, 86%, 53%, 0.08);

  /* Typography — FONTS.en */
  --font-brand: 'Playpen Sans', cursive;
  --font-title: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Manrope', ui-sans-serif, system-ui, sans-serif;

  /* radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* borders.width */
  --border-thin: 1px;
  --border-medium: 2px;

  /* spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;

  /* fontSize */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-md: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-header: 28px;
  --text-title: 36px;

  /* shadows — converted from shadows.sm */
  --shadow-sm: 0 4px 6px hsla(198, 86%, 53%, 0.08);
  --shadow-md: 0 6px 10px hsla(198, 86%, 53%, 0.1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--grey-900);
    --surface: var(--grey-800);
    --border: var(--grey-700);
    --border-light: var(--grey-700);
    --text-primary: var(--grey-100);
    --text-secondary: var(--grey-400);
    --text-tertiary: var(--grey-500);
    --accent-bg: hsla(198, 86%, 53%, 0.12);
  }
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  padding: var(--space-xxl) var(--space-lg) 5rem;
  margin: 0;
  line-height: 1.6;
}

.wrap {
  max-width: 620px;
  margin: 0 auto;
}

/* Header */
header {
  margin-bottom: 2.5rem;
}

.eyebrow {
  font-family: var(--font-brand);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

h1 {
  font-family: var(--font-title);
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  color: var(--text-primary);
}

.meta {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin: 0;
}

/* Plain-language summary card */
.summary {
  background: var(--accent-bg);
  border: var(--border-thin) solid hsla(198, 86%, 53%, 0.25);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.summary-title {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.summary ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin: 0;
  padding: 0;
}

.summary ul li {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  display: flex;
  gap: 10px;
  line-height: 1.5;
}

.summary ul li::before {
  content: '✓';
  color: var(--color-success);
  font-weight: 600;
  flex-shrink: 0;
}

/* Sections */
.sections {
  display: flex;
  flex-direction: column;
}

section {
  padding: 1.75rem 0;
  border-bottom: var(--border-thin) solid var(--border);
}

section:last-of-type {
  border-bottom: none;
}

h2 {
  font-family: var(--font-title);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.6rem;
}

p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.75;
  margin: 0 0 0.6rem;
}

p:last-child {
  margin-bottom: 0;
}

/* Data list */
.data-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin: 0.75rem 0 0;
}

.data-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--space-md);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.data-item dt {
  font-weight: 600;
  color: var(--text-primary);
}

.data-item dd {
  margin: 0;
  color: var(--text-secondary);
}

/* Rights list */
.rights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin: 0.75rem 0 0;
  padding: 0;
}

.rights li {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  display: flex;
  gap: 10px;
  line-height: 1.6;
}

.rights li::before {
  content: '→';
  color: var(--accent);
  flex-shrink: 0;
}

.rights li strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Contact card */
.contact-box {
  background: var(--surface);
  border: var(--border-thin) solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md) 1.25rem;
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 3px;
  box-shadow: var(--shadow-sm);
}

.contact-box span {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-tertiary);
  font-weight: 600;
}

.contact-box a {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.contact-box a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  margin-top: var(--space-xxl);
  padding-top: var(--space-lg);
  border-top: var(--border-thin) solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

footer p {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin: 0;
}

@media (max-width: 480px) {
  .data-item {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  body {
    padding: var(--space-xl) var(--space-md) 4rem;
  }
}
