:root {
  color-scheme: light;
  --navy: #10284b;
  --blue: #176fa6;
  --aqua: #70bdc2;
  --ink: #293648;
  --muted: #5c6878;
  --line: #dce6ed;
  --paper: #ffffff;
  --canvas: #f3f7fa;
  --notice: #fff8e7;
  --notice-border: #ead39a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.75;
}

a {
  color: var(--blue);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--navy);
}

a:focus-visible {
  outline: 3px solid var(--aqua);
  outline-offset: 3px;
}

.page-shell {
  width: min(100% - 2rem, 860px);
  margin: 2.5rem auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--paper);
  box-shadow: 0 16px 48px rgb(16 40 75 / 7%);
}

.page-header {
  padding: clamp(1.5rem, 5vw, 3.25rem);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 100% 0%, rgb(112 189 194 / 18%), transparent 45%),
    var(--paper);
}

.back-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 650;
}

.brand {
  margin: 1.5rem 0 0.3rem;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2 {
  color: var(--navy);
  line-height: 1.25;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3rem);
  letter-spacing: -0.035em;
}

.summary {
  max-width: 680px;
  margin: 1rem 0 0;
  color: var(--muted);
}

.updated {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.content {
  padding: clamp(1.5rem, 5vw, 3.25rem);
}

.content section + section {
  margin-top: 2rem;
}

h2 {
  margin: 0 0 0.6rem;
  font-size: 1.25rem;
}

p {
  margin: 0.65rem 0;
}

ul,
ol {
  padding-left: 1.35rem;
}

li + li {
  margin-top: 0.45rem;
}

.notice {
  margin-bottom: 2rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--notice-border);
  border-radius: 0.8rem;
  background: var(--notice);
  color: #463915;
}

.developer-card {
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--aqua);
  border-radius: 0.8rem;
  background: #f8fbfc;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  padding: 1rem clamp(1.5rem, 5vw, 3.25rem);
  border-top: 1px solid var(--line);
  background: #f8fbfc;
  font-size: 0.92rem;
  font-weight: 650;
}

@media (max-width: 560px) {
  .page-shell {
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .legal-nav {
    flex-direction: column;
    gap: 0.25rem;
  }

  .legal-nav a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
