/*
 * Public resource pages (/privacy/, /account-deletion/): static, no script,
 * same palette and type as the landing page. Sizes are in rem so browser
 * text scaling and zoom reflow the page instead of clipping it.
 */
:root {
  color-scheme: dark;
  --bg: #04070a;
  --surface: #0a1116;
  --line: #1d2c35;
  --line-strong: #365160;
  --text: #f4f8fa;
  --muted: #9aadb7;
  --cyan: #58d2f6;
  --cyan-bright: #b6edff;
  --amber: #f3b35d;
  --amber-wash: rgba(243, 179, 93, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

a {
  color: var(--cyan);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--cyan-bright);
}

a:focus-visible,
main:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -100vh;
  left: 1rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}

.skip-link:focus {
  top: 1rem;
}

.resource-header,
.resource-main,
.resource-footer-inner,
.draft-banner-inner {
  width: min(100% - 2rem, 46rem);
  margin-inline: auto;
}

.draft-banner {
  border-bottom: 2px solid var(--amber);
  background: var(--amber-wash);
  color: var(--text);
}

.draft-banner-inner {
  padding-block: 0.85rem;
}

.draft-banner strong {
  color: var(--amber);
}

.draft-banner p {
  margin: 0;
}

.resource-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.resource-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.resource-brand b {
  color: var(--cyan);
}

.resource-brand img {
  width: 2.5rem;
  height: 2.5rem;
}

.resource-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.resource-nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 700;
  text-decoration-thickness: 2px;
}

.resource-main {
  padding-block: 2.5rem 3rem;
}

.resource-main h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  line-height: 1.15;
}

.resource-main h2 {
  margin: 2.25rem 0 0.5rem;
  font-size: 1.35rem;
  line-height: 1.3;
}

.resource-lead {
  color: var(--muted);
  font-size: 1.125rem;
}

.resource-main p,
.resource-main li {
  max-width: 40rem;
}

.resource-main ul {
  padding-left: 1.25rem;
}

.resource-note {
  padding: 1rem 1.25rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
}

/* The one action a reader can take today, shown before any explanation. */
.resource-action-link {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--cyan);
  border-radius: 10px;
  background: var(--surface);
  font-weight: 600;
  text-decoration: none;
}

.resource-action-link:hover {
  border-color: var(--cyan-bright);
}

.resource-choices li + li {
  margin-top: 0.5rem;
}

.resource-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.resource-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.5rem 2.5rem;
}

.resource-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.resource-footer p {
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Released pages state their effective date under the title. */
.resource-effective {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}
