:root {
  color-scheme: light;
  font-family:
    Inter, "Noto Sans JP", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  background: #f4f7fb;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  --accent: #0f766e;
  --accent-bright: #14b8a6;
  --accent-soft: #ccfbf1;
  --accent-ink: #134e4a;
  min-height: 100vh;
  margin: 0;
  padding: 32px 20px;
  background:
    radial-gradient(circle at 5% 5%, rgb(20 184 166 / 18%), transparent 32%),
    radial-gradient(circle at 95% 95%, rgb(14 116 144 / 13%), transparent 30%),
    #f4f7fb;
}

body[data-path-policy="protected"] {
  --accent: #b45309;
  --accent-bright: #f59e0b;
  --accent-soft: #fef3c7;
  --accent-ink: #78350f;
  background:
    radial-gradient(circle at 5% 5%, rgb(245 158 11 / 18%), transparent 32%),
    radial-gradient(circle at 95% 95%, rgb(190 24 93 / 10%), transparent 30%),
    #f7f5f2;
}

a {
  color: inherit;
}

code {
  padding: 0.16em 0.42em;
  border: 1px solid rgb(15 23 42 / 9%);
  border-radius: 0.45em;
  background: rgb(255 255 255 / 72%);
  color: var(--accent-ink);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.91em;
}

.page-shell {
  width: min(900px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 6vw, 64px);
  overflow: hidden;
  border: 1px solid rgb(15 23 42 / 10%);
  border-radius: 28px;
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 28px 90px rgb(15 23 42 / 11%);
  backdrop-filter: blur(18px);
}

.hero {
  max-width: 760px;
}

.route-id {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}

.scope-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.route-id code {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 0.86rem;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 14ch;
  margin: 0;
  color: #142033;
  font-size: clamp(2.45rem, 8vw, 5.4rem);
  line-height: 1.04;
  letter-spacing: -0.065em;
}

h2 {
  margin: 0;
  color: #1e293b;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  letter-spacing: -0.025em;
}

.lead {
  max-width: 66ch;
  margin: 28px 0 0;
  color: #526075;
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.9;
}

.policy-panel,
.sample-content {
  margin-top: clamp(42px, 7vw, 72px);
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid rgb(15 23 42 / 9%);
  border-radius: 20px;
  background: #f8fafc;
}

.section-heading {
  margin-bottom: 26px;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.policy-grid > div {
  min-height: 118px;
  padding: 18px;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgb(15 23 42 / 7%);
}

.policy-grid dt {
  margin-bottom: 14px;
  color: #718096;
  font-size: 0.77rem;
  font-weight: 750;
}

.policy-grid dd {
  margin: 0;
  color: #253146;
  font-weight: 800;
  line-height: 1.5;
}

.sample-content {
  background: linear-gradient(135deg, var(--accent-soft), #fff 70%);
}

.sample-content p:last-child {
  max-width: 68ch;
  margin: 18px 0 0;
  color: #526075;
  line-height: 1.85;
}

.status-note {
  display: flex;
  gap: 16px;
  margin-top: 22px;
  padding: 20px 22px;
  border: 1px solid rgb(15 118 110 / 15%);
  border-radius: 16px;
  background: rgb(240 253 250 / 78%);
}

.status-note.warning {
  border-color: rgb(180 83 9 / 16%);
  background: rgb(255 251 235 / 86%);
}

.status-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent-bright) 14%, transparent);
}

.status-note strong {
  color: #253146;
}

.status-note p {
  margin: 6px 0 0;
  color: #64748b;
  line-height: 1.7;
}

.page-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 32px;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 50px;
  padding: 12px 18px;
  border-radius: 13px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 24%, transparent);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.primary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--accent) 32%, transparent);
}

.primary-action:focus-visible,
.text-action:focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: 4px;
}

.text-action {
  color: var(--accent);
  font-weight: 800;
  text-underline-offset: 4px;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid #e2e8f0;
  color: #7a8799;
  font-size: 0.82rem;
}

@media (max-width: 700px) {
  body {
    padding: 14px;
  }

  .page-shell {
    border-radius: 20px;
  }

  .route-id {
    margin-bottom: 28px;
  }

  .policy-grid {
    grid-template-columns: 1fr;
  }

  .policy-grid > div {
    min-height: auto;
  }

  .page-actions,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
