﻿@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Sora:wght@400;600;700;800&display=swap");

:root {
  --navy: #002f6c;
  --blue: #0074e8;
  --sky: #90caf9;
  --ink: #10223f;
  --muted: #4f5f7b;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: #ffffff;
  --surface-soft: rgba(233, 243, 255, 0.9);
  --border: rgba(0, 47, 108, 0.1);
  --border-strong: rgba(0, 47, 108, 0.18);
  --shadow: 0 28px 70px rgba(0, 34, 82, 0.14);
  --shadow-soft: 0 18px 36px rgba(0, 47, 108, 0.09);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Trebuchet MS", sans-serif;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(144, 202, 249, 0.58), transparent 30%),
    radial-gradient(circle at 84% 8%, rgba(0, 116, 232, 0.16), transparent 24%),
    linear-gradient(180deg, #f3f8ff 0%, #edf4ff 42%, #f9fbff 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.28) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 100%);
  opacity: 0.18;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--blue);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

a:hover {
  text-decoration-color: currentColor;
}

button,
input {
  font: inherit;
}

.site-shell {
  position: relative;
  isolation: isolate;
}

.page-width {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero-header {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.75rem) 0 1.2rem;
}

.hero-header::before {
  content: "";
  position: absolute;
  inset: 0 0 22% 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(0, 116, 232, 0.12), transparent 28%),
    radial-gradient(circle at 82% 0%, rgba(144, 202, 249, 0.55), transparent 34%);
  z-index: -1;
}

.header-inner {
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  text-align: center;
}

.brand-link {
  display: inline-flex;
  max-width: min(960px, 100%);
}

.brand-logo {
  width: min(100%, 820px);
  height: auto;
  filter: drop-shadow(0 22px 42px rgba(0, 47, 108, 0.12));
}

.tagline {
  margin: 0;
  color: var(--navy);
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-shell {
  position: sticky;
  top: 0;
  z-index: 30;
  padding-bottom: 0.6rem;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-soft);
}

.menu-toggle {
  display: none;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface-strong);
  color: var(--navy);
  font-weight: 800;
  cursor: pointer;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 0.72rem 1rem;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--navy);
  text-decoration: none;
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease,
    box-shadow 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--navy);
  border-color: rgba(0, 116, 232, 0.16);
  background: rgba(233, 243, 255, 0.92);
  box-shadow: 0 10px 22px rgba(0, 47, 108, 0.1);
  transform: translateY(-1px);
}

.nav-link[aria-current="page"] {
  color: var(--surface-strong);
  background: linear-gradient(135deg, var(--navy), var(--blue));
  box-shadow: 0 14px 28px rgba(0, 47, 108, 0.2);
}

.page {
  padding: 1.25rem 0 3rem;
}

.page-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.85fr);
  gap: clamp(1.4rem, 3vw, 2.4rem);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3.1rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(232, 243, 255, 0.92)),
    var(--surface-strong);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(14px);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -48% auto;
  width: min(42vw, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 116, 232, 0.16), transparent 66%);
  z-index: 0;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: min(42%, 320px);
  background: linear-gradient(135deg, rgba(0, 47, 108, 0.06), transparent 75%);
  z-index: 0;
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

.page-hero.hero-single {
  grid-template-columns: 1fr;
}

.home-hero {
  align-items: stretch;
}

.hero-copy {
  display: grid;
  gap: 1rem;
}

.eyebrow {
  margin: 0;
  color: var(--navy);
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.page-title {
  margin: 0;
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.05;
  color: var(--navy);
}

.page-intro {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.03rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-media,
.hero-logo-stack,
.image-stack {
  display: grid;
  gap: 1rem;
}

.hero-showcase {
  display: grid;
  gap: 1rem;
  height: 100%;
}

.hero-showcase-top {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 1rem;
}

.hero-logo-stack {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-logo-frame,
.image-frame,
.landscape-logo-frame {
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius-lg) + 2px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(224, 238, 255, 0.92));
  box-shadow: var(--shadow-soft);
}

.hero-logo-frame img,
.image-frame img,
.landscape-logo-frame img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.hero-logo-frame-tall {
  align-self: stretch;
}

.hero-logo-frame-offset {
  transform: translateY(1.4rem);
}

.hero-showcase-wide {
  margin-top: 0.15rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.88rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: var(--surface-strong);
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease,
    background-color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(0, 47, 108, 0.24);
}

.button.secondary {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.88);
  color: var(--navy);
  box-shadow: none;
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: var(--surface-strong);
  box-shadow: 0 12px 24px rgba(0, 47, 108, 0.12);
}

.button.small {
  padding: 0.72rem 1rem;
  font-size: 0.88rem;
}

.content-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.two-column-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
  align-items: start;
}

.panel,
.legal-article,
.toc-card,
.comic-archive {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 247, 255, 0.92));
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.panel {
  padding: clamp(1.2rem, 3vw, 1.8rem);
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(0, 47, 108, 0.92), rgba(0, 116, 232, 0.45), transparent);
  opacity: 0.75;
}

.panel-title {
  margin: 0 0 1rem;
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: var(--navy);
}

.panel-subtitle {
  margin: -0.35rem 0 1rem;
  color: var(--muted);
}

.release-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.72rem;
}

.release-list li {
  margin: 0;
}

.release-link,
.future-release-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(0, 47, 108, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.release-link {
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease,
    background-color 0.2s ease;
}

.release-link::before,
.future-release-item::before {
  content: "";
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  box-shadow: 0 0 0 4px rgba(0, 116, 232, 0.08);
}

.release-link::after {
  content: "\203A";
  color: var(--blue);
  font-size: 1.2rem;
  line-height: 1;
}

.release-link:hover,
.release-link:focus-visible {
  transform: translateX(4px);
  border-color: rgba(0, 116, 232, 0.26);
  background: rgba(246, 250, 255, 0.96);
  box-shadow: 0 16px 28px rgba(0, 47, 108, 0.1);
}

.release-link-upcoming::after {
  content: "\2197";
  font-size: 1rem;
}

.home-panel {
  min-height: 100%;
}

.home-list-grid {
  align-items: stretch;
}

.about-layout,
.visual-card {
  align-items: stretch;
}

.visual-card {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.prose-card p,
.legal-article p,
.legal-article li,
.info-card p,
.mail-card p,
.donate-card p {
  margin-top: 0;
  color: var(--ink);
}

.prose-card p:last-child,
.info-card p:last-child,
.mail-card p:last-child,
.donate-card p:last-child {
  margin-bottom: 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.contact-link {
  font-size: 1.1rem;
  font-weight: 700;
  word-break: break-word;
}

.mail-card address {
  margin: 0;
  font-style: normal;
  font-size: 1.05rem;
  line-height: 1.9;
}

.donate-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
  align-items: start;
}

.donate-layout-single {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

.donate-image-frame {
  height: 100%;
}

.donate-notice-card {
  justify-self: center;
  width: 100%;
}

.fine-print {
  color: var(--muted);
  font-size: 0.96rem;
}

.legal-shell {
  display: grid;
  grid-template-columns: minmax(230px, 280px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  margin-top: 1.5rem;
}

.toc-card {
  position: sticky;
  top: 6.2rem;
  padding: 1.15rem;
}

.toc-heading {
  margin: 0 0 0.75rem;
  color: var(--navy);
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.toc-list {
  display: grid;
  gap: 0.4rem;
}

.toc-list a {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.toc-list a:hover,
.toc-list a:focus-visible {
  background: rgba(0, 116, 232, 0.1);
  color: var(--navy);
}

.toc-list a.toc-sub {
  padding-left: 1.15rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.legal-article {
  padding: clamp(1.3rem, 3vw, 2rem);
}

.legal-article h1,
.legal-article h2,
.legal-article h3 {
  margin-top: 0;
  font-family: "Sora", "Trebuchet MS", sans-serif;
  color: var(--navy);
}

.legal-article h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.legal-article h2 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.legal-article h3 {
  margin-bottom: 0.55rem;
  font-size: 1rem;
}

.legal-article section + section {
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(0, 47, 108, 0.08);
}

.legal-article ul {
  margin: 0 0 1rem 1.2rem;
  padding: 0;
}

.comic-archive {
  padding: clamp(1.15rem, 3vw, 1.7rem);
  margin-top: 1.5rem;
}

.archive-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 1rem;
}

.search-field {
  display: block;
}

.search-field input {
  width: 100%;
  padding: 0.92rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
}

.search-field input:focus {
  outline: 2px solid rgba(0, 116, 232, 0.18);
  outline-offset: 2px;
  border-color: rgba(0, 116, 232, 0.38);
}

.count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: rgba(0, 47, 108, 0.08);
  color: var(--navy);
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.7rem;
}

.comic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.comic-card {
  border: 1px solid rgba(0, 47, 108, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 28px rgba(0, 47, 108, 0.08);
  overflow: hidden;
  scroll-margin-top: 7rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.comic-card.is-open {
  border-color: rgba(0, 47, 108, 0.16);
  box-shadow: 0 20px 38px rgba(0, 47, 108, 0.12);
}

.comic-card:target {
  border-color: rgba(0, 116, 232, 0.36);
  box-shadow: 0 24px 42px rgba(0, 47, 108, 0.16);
}

.comic-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.comic-toggle:hover,
.comic-toggle:focus-visible {
  background: rgba(233, 243, 255, 0.7);
}

.comic-card.is-open .comic-toggle {
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(239, 247, 255, 0.94));
  border-bottom: 1px solid rgba(0, 47, 108, 0.08);
}

.comic-name {
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}

.comic-arrow {
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 1rem;
  transition: transform 0.25s ease;
}

.comic-card.is-open .comic-arrow {
  transform: rotate(90deg);
}

.comic-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.comic-card.is-open .comic-panel {
  grid-template-rows: 1fr;
}

.comic-panel-inner {
  overflow: hidden;
}

.comic-panel-content {
  padding: 0 1.1rem 1.1rem;
}

.comic-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.comic-link {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.comic-image {
  width: 100%;
  height: auto;
  background: var(--surface-strong);
}

.empty-state {
  margin: 0 0 1rem;
  color: var(--muted);
  font-weight: 700;
}

.landscape-logo-frame {
  margin-top: 1.5rem;
}

.future-release-panel {
  margin-top: 1.25rem;
}

.future-release-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.future-release-item {
  scroll-margin-top: 7rem;
}

.future-release-item:target {
  border-color: rgba(0, 116, 232, 0.36);
  background: rgba(245, 250, 255, 0.98);
  box-shadow: 0 18px 34px rgba(0, 47, 108, 0.12);
}

.site-footer {
  margin-top: 1rem;
  padding: 2rem 0 2.5rem;
  background:
    radial-gradient(circle at top center, rgba(144, 202, 249, 0.18), transparent 38%),
    linear-gradient(180deg, rgba(0, 47, 108, 0.98), rgba(0, 24, 58, 1));
  color: var(--surface-strong);
}

.footer-inner {
  display: grid;
  gap: 0.65rem;
  justify-items: center;
  text-align: center;
}

.footer-copy {
  margin: 0;
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

.footer-links a {
  color: var(--surface-strong);
  font-size: 0.92rem;
  text-decoration: underline;
}

.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: min(420px, calc(100% - 2rem));
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(0, 47, 108, 0.96), rgba(0, 116, 232, 0.96));
  color: var(--surface-strong);
  box-shadow: 0 18px 42px rgba(0, 28, 68, 0.28);
  z-index: 50;
}

.cookie-banner p {
  margin: 0 0 0.9rem;
  font-size: 0.95rem;
}

.cookie-banner a {
  color: #d9ecff;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.cookie-actions .button {
  flex: 1 1 140px;
}

.cookie-actions .button.secondary {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--surface-strong);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.js-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.legal-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid rgba(0, 47, 108, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.legal-toolbar-main {
  display: grid;
  gap: 0.75rem;
}

.legal-toolbar-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-search {
  max-width: 520px;
}

.legal-toolbar-side {
  display: grid;
  gap: 0.75rem;
  justify-items: end;
}

.legal-count {
  min-width: 118px;
}

.legal-toolbar-actions {
  justify-content: flex-end;
}

.legal-article[data-legal-accordion] {
  padding-bottom: 1.2rem;
}

.legal-article[data-legal-accordion] > section {
  margin-top: 0;
}

.legal-section {
  overflow: hidden;
  border: 1px solid rgba(0, 47, 108, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 24px rgba(0, 47, 108, 0.08);
}

.legal-section + .legal-section {
  margin-top: 0.9rem;
}

.legal-section[hidden] {
  display: none;
}

.legal-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  cursor: pointer;
  list-style: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(236, 245, 255, 0.9));
}

.legal-summary::-webkit-details-marker {
  display: none;
}

.legal-summary::marker {
  content: "";
}

.legal-summary-title {
  color: var(--navy);
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
}

.legal-summary-meta {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal-section[open] .legal-summary {
  border-bottom: 1px solid rgba(0, 47, 108, 0.09);
}

.legal-section-body {
  padding: 1rem 1.15rem 1.15rem;
}

.legal-section-body p:last-child,
.legal-section-body ul:last-child {
  margin-bottom: 0;
}

.legal-section-body h3 {
  margin-top: 1.2rem;
}
@media (max-width: 980px) {
  .page-hero,
  .split-layout,
  .donate-layout,
  .legal-shell,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .hero-logo-stack,
  .hero-showcase-top,
  .future-release-list,
  .comic-grid,
  .two-column-grid {
    grid-template-columns: 1fr;
  }

  .hero-logo-frame-offset {
    transform: none;
  }

  .toc-card {
    position: static;
  }

  .archive-toolbar {
    grid-template-columns: 1fr;
  }

  .toolbar-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .page-width {
    width: min(100%, calc(100% - 1rem));
  }

  .nav-inner {
    justify-content: space-between;
    border-radius: 16px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 0;
    right: 0;
    display: none;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-soft);
  }

  .site-nav.is-open {
    display: grid;
  }

  .nav-link {
    width: 100%;
  }

  .hero-actions,
  .cookie-actions {
    flex-direction: column;
  }

  .page {
    padding-top: 0.9rem;
  }

  .page-hero {
    padding: 1.25rem;
  }

  .release-link,
  .future-release-item {
    padding: 0.9rem 0.92rem;
    gap: 0.7rem;
  }

  .button,
  .button.small {
    width: 100%;
  }

  .comic-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}


@media (max-width: 980px) {
  .legal-toolbar {
    grid-template-columns: 1fr;
  }

  .legal-toolbar-side {
    justify-items: stretch;
  }

  .legal-count {
    width: fit-content;
  }
}

@media (max-width: 700px) {
  .legal-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-summary-meta {
    white-space: normal;
  }
}

.terms-shell {
  grid-template-columns: 1fr;
}

.terms-toc {
  position: static;
  padding: 1rem 1.1rem;
}

.terms-toc .toc-heading {
  margin-bottom: 0.9rem;
}

.terms-toc .toc-list {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.7rem;
}

.terms-toc .toc-list a {
  min-height: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(0, 47, 108, 0.1);
  background: rgba(255, 255, 255, 0.82);
  color: var(--navy);
  line-height: 1.45;
}

.terms-toc .toc-list a:hover,
.terms-toc .toc-list a:focus-visible {
  background: rgba(233, 243, 255, 0.96);
}

.terms-article {
  margin-top: 0.15rem;
}

.terms-article .legal-toolbar {
  position: sticky;
  top: 5.5rem;
  z-index: 4;
}

.terms-article .legal-summary {
  padding: 1rem 1.15rem;
}

.terms-article .legal-summary-title {
  font-size: 1rem;
}

.terms-article .legal-section-body {
  padding: 1rem 1.15rem 1.2rem;
}

.terms-article .legal-section-body p,
.terms-article .legal-section-body li {
  font-size: 0.98rem;
  line-height: 1.72;
}

.terms-article .legal-section-body ul {
  margin-top: 0.2rem;
}

@media (max-width: 980px) {
  .terms-article .legal-toolbar {
    position: static;
  }
}

@media (max-width: 700px) {
  .terms-toc .toc-list {
    grid-template-columns: 1fr;
  }
}
