* {
  box-sizing: border-box;
}

:root {
  color-scheme: light dark;
  --page: #f8f3e7;
  --page-deep: #f0e9d8;
  --surface: #fffdf8;
  --surface-soft: #f6f1e6;
  --ink: #152237;
  --muted: #53606a;
  --quiet: #70797c;
  --teal: #167f87;
  --teal-dark: #0b626b;
  --teal-soft: #d9efeb;
  --purple: #7445aa;
  --purple-soft: #eee5f5;
  --orange: #e99b11;
  --orange-dark: #9b6100;
  --orange-soft: #fff0ca;
  --coral: #df5049;
  --coral-soft: #fbe4dd;
  --blue: #4b89c8;
  --line: rgba(22, 127, 135, 0.24);
  --line-soft: rgba(21, 34, 55, 0.1);
  --shadow: 0 22px 56px rgba(31, 57, 64, 0.1);
  --shadow-soft: 0 10px 28px rgba(31, 57, 64, 0.06);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --content-width: 980px;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  position: relative;
  overflow-x: hidden;
  min-width: 280px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 6% -3%, rgba(82, 197, 191, 0.2), transparent 26rem),
    radial-gradient(circle at 96% 8%, rgba(233, 155, 17, 0.15), transparent 24rem),
    linear-gradient(145deg, var(--page), var(--page-deep));
  color: var(--ink);
  font: 1rem/1.68 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(30deg, rgba(22, 127, 135, 0.035) 12%, transparent 12.5%, transparent 87%, rgba(22, 127, 135, 0.035) 87.5%, rgba(22, 127, 135, 0.035)),
    linear-gradient(150deg, rgba(116, 69, 170, 0.025) 12%, transparent 12.5%, transparent 87%, rgba(116, 69, 170, 0.025) 87.5%, rgba(116, 69, 170, 0.025));
  background-position: 0 0, 0 0;
  background-size: 96px 56px;
  content: "";
}

a {
  color: var(--teal-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

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

.skip-link {
  position: fixed;
  z-index: 30;
  top: 12px;
  left: 12px;
  padding: 10px 15px;
  border: 2px solid var(--orange);
  border-radius: 14px;
  background: var(--ink);
  color: var(--surface);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(var(--content-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0 72px;
}

.compact-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.hero {
  position: relative;
  overflow: hidden;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(136deg, rgba(255, 255, 255, 0.9), rgba(217, 239, 235, 0.86)),
    var(--surface);
  box-shadow: var(--shadow);
}

.hero::before {
  position: absolute;
  top: -88px;
  right: -64px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(116, 69, 170, 0.15);
  border-radius: 50%;
  box-shadow: 0 0 0 20px rgba(116, 69, 170, 0.035), 0 0 0 42px rgba(116, 69, 170, 0.025);
  content: "";
}

.hero::after {
  display: block;
  height: 8px;
  background: linear-gradient(90deg, var(--coral) 0 20%, var(--orange) 20% 40%, var(--teal) 40% 60%, var(--purple) 60% 80%, var(--blue) 80%);
  content: "";
}

.hero-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 25px 30px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  position: relative;
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  border: 1px solid rgba(255, 253, 248, 0.35);
  border-radius: 19px;
  background: var(--teal);
  box-shadow: 0 12px 26px rgba(22, 127, 135, 0.24);
  transform: rotate(-2deg);
}

.brand-card {
  position: absolute;
  top: 13px;
  width: 22px;
  height: 33px;
  border: 2px solid var(--surface);
  border-radius: 6px;
  background: rgba(255, 253, 248, 0.15);
}

.brand-card-left {
  left: 10px;
  transform: rotate(-11deg);
}

.brand-card-right {
  right: 9px;
  transform: rotate(11deg);
}

.brand-seven {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--surface);
  font-size: 26px;
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 2px 5px rgba(21, 34, 55, 0.25);
}

.brand-name,
.brand-publisher {
  display: block;
}

.brand-name {
  font-size: 1.1rem;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.brand-publisher {
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.language-control {
  display: grid;
  gap: 5px;
  justify-items: start;
}

.language-control label {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.language-control select {
  min-width: 190px;
  padding: 10px 35px 10px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.84);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 52px 30px 42px;
}

.hero-copy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  align-items: center;
  gap: clamp(24px, 5vw, 60px);
}

.kicker {
  margin: 0 0 10px;
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.45rem, 7vw, 4.9rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-intro {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  line-height: 1.55;
}

.updated {
  margin: 16px 0 0;
  color: var(--quiet);
  font-size: 0.82rem;
  font-weight: 650;
}

.hero-art {
  position: relative;
  min-height: 212px;
  isolation: isolate;
  border: 1px solid rgba(22, 127, 135, 0.17);
  border-radius: 28px;
  background:
    radial-gradient(circle at 76% 18%, rgba(233, 155, 17, 0.26), transparent 5rem),
    linear-gradient(145deg, rgba(255, 253, 248, 0.8), rgba(238, 229, 245, 0.78));
}

.hero-art::before {
  position: absolute;
  right: 18px;
  bottom: 20px;
  left: 18px;
  height: 15px;
  border-radius: 50%;
  background: rgba(21, 34, 55, 0.15);
  filter: blur(7px);
  content: "";
}

.hero-art::after {
  position: absolute;
  top: 17px;
  right: 19px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: -17px 22px 0 var(--coral), -41px 3px 0 var(--teal), 8px 43px 0 var(--purple);
  content: "";
}

.art-card {
  position: absolute;
  z-index: 1;
  bottom: 31px;
  display: grid;
  width: 83px;
  height: 124px;
  place-items: center;
  border: 4px solid var(--teal);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: 0 10px 17px rgba(21, 34, 55, 0.15);
  color: var(--ink);
  font-size: 2.2rem;
  font-weight: 950;
}

.art-card::before {
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(22, 127, 135, 0.34);
  border-radius: 8px;
  content: "";
}

.art-card span {
  position: relative;
  z-index: 1;
}

.art-card-one {
  left: 22px;
  border-color: var(--purple);
  color: var(--purple);
  transform: rotate(-16deg);
}

.art-card-two {
  left: 82px;
  border-color: var(--orange);
  color: var(--orange-dark);
  transform: rotate(-2deg);
}

.art-card-three {
  right: 35px;
  border-color: var(--teal);
  color: var(--teal-dark);
  transform: rotate(14deg);
}

.art-ground {
  position: absolute;
  right: 26px;
  bottom: 23px;
  left: 25px;
  z-index: 2;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--purple), var(--teal), var(--orange));
}

.legal-nav {
  position: sticky;
  z-index: 10;
  top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: min(570px, 100%);
  margin: 20px auto 30px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.85);
  box-shadow: 0 12px 30px rgba(31, 57, 64, 0.1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.legal-nav a {
  display: grid;
  min-height: 46px;
  place-items: center;
  padding: 8px 15px;
  border-radius: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.legal-nav a:hover {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.legal-nav a.current {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 8px 20px rgba(22, 127, 135, 0.22);
}

.notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  padding: 22px 24px;
  border: 1.5px solid rgba(116, 69, 170, 0.27);
  border-radius: var(--radius-lg);
  background: var(--purple-soft);
  box-shadow: var(--shadow-soft);
}

.notice-amber {
  border-color: rgba(233, 155, 17, 0.38);
  background: var(--orange-soft);
}

.notice-symbol {
  position: relative;
  display: grid;
  width: 55px;
  height: 68px;
  place-items: center;
  border: 2px solid var(--purple);
  border-radius: 12px;
  background: var(--surface);
  color: var(--purple);
  font-size: 1.55rem;
  font-weight: 950;
  line-height: 1;
  transform: rotate(-5deg);
}

.notice-symbol::before,
.notice-symbol::after {
  position: absolute;
  z-index: -1;
  inset: 3px -6px -3px 6px;
  border: 1px solid currentColor;
  border-radius: 11px;
  content: "";
  opacity: 0.35;
}

.notice-symbol::after {
  inset: 6px -10px -6px 10px;
  opacity: 0.18;
}

.notice-amber .notice-symbol {
  border-color: var(--orange);
  color: var(--orange-dark);
}

.notice p {
  margin: 0;
  color: var(--muted);
}

.notice strong {
  color: var(--ink);
}

.section-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
}

.legal-section {
  position: relative;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  min-height: 184px;
  overflow: hidden;
  padding: 24px 22px 23px;
  border: 1.5px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.legal-section::before {
  position: absolute;
  top: 0;
  right: 28px;
  left: 28px;
  height: 4px;
  border-radius: 0 0 6px 6px;
  background: var(--teal);
  content: "";
}

.legal-section:nth-child(4n + 2)::before {
  background: var(--orange);
}

.legal-section:nth-child(4n + 3)::before {
  background: var(--coral);
}

.legal-section:nth-child(4n + 4)::before {
  background: var(--purple);
}

.legal-section:last-child {
  grid-column: 1 / -1;
  min-height: 144px;
}

.section-number {
  display: grid;
  width: 44px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(22, 127, 135, 0.18);
  border-radius: 13px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  transform: rotate(-3deg);
}

.legal-section:nth-child(4n + 2) .section-number {
  border-color: rgba(233, 155, 17, 0.26);
  background: var(--orange-soft);
  color: var(--orange-dark);
  transform: rotate(3deg);
}

.legal-section:nth-child(4n + 3) .section-number {
  border-color: rgba(223, 80, 73, 0.23);
  background: var(--coral-soft);
  color: #b73f38;
  transform: rotate(-3deg);
}

.legal-section:nth-child(4n + 4) .section-number {
  border-color: rgba(116, 69, 170, 0.23);
  background: var(--purple-soft);
  color: var(--purple);
  transform: rotate(3deg);
}

.legal-section h2 {
  margin: 1px 0 8px;
  color: var(--ink);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.22;
  letter-spacing: -0.025em;
}

.legal-section p {
  max-width: 68ch;
  margin: 0;
  color: var(--muted);
}

.legal-section:last-child p {
  max-width: 92ch;
}

.noscript-note {
  margin: 18px 0 0;
  padding: 15px 17px;
  border: 1px solid rgba(233, 155, 17, 0.38);
  border-radius: var(--radius-md);
  background: var(--orange-soft);
  color: var(--orange-dark);
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 5px;
  margin-top: 36px;
  padding: 24px 18px 0;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 0.84rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-footer strong {
  color: var(--ink);
}

.not-found {
  position: relative;
  display: grid;
  flex: 1;
  align-content: center;
  justify-items: center;
  min-height: 460px;
  padding: 50px 24px;
  text-align: center;
}

.not-found::before,
.not-found::after {
  position: absolute;
  width: 92px;
  height: 132px;
  border: 4px solid var(--teal);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 14px 24px rgba(21, 34, 55, 0.12);
  color: var(--teal);
  content: "7";
  font-size: 3.2rem;
  font-weight: 950;
  line-height: 124px;
  text-align: center;
}

.not-found::before {
  left: 11%;
  transform: rotate(-16deg);
}

.not-found::after {
  right: 11%;
  border-color: var(--purple);
  color: var(--purple);
  transform: rotate(14deg);
}

.not-found-code {
  position: relative;
  z-index: 1;
  color: var(--teal-soft);
  font-size: clamp(5rem, 24vw, 10rem);
  font-weight: 950;
  line-height: 0.85;
  letter-spacing: -0.08em;
  text-shadow: 0 4px 0 rgba(21, 34, 55, 0.04);
}

.not-found h1,
.not-found > p,
.not-found-actions {
  position: relative;
  z-index: 1;
}

.not-found h1 {
  margin-top: 6px;
  font-size: clamp(2rem, 7vw, 3.6rem);
}

.not-found > p:not(.kicker) {
  max-width: 500px;
  margin: 18px 0 0;
  color: var(--muted);
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.button-primary:hover {
  color: #fff;
  background: var(--teal-dark);
}

.button-secondary {
  background: var(--surface);
}

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

@media (prefers-color-scheme: dark) {
  :root {
    --page: #111a24;
    --page-deep: #17242c;
    --surface: #1d2a34;
    --surface-soft: #22343b;
    --ink: #f7f4e9;
    --muted: #c2c9c8;
    --quiet: #9ca7a8;
    --teal: #5ac7c6;
    --teal-dark: #83dddd;
    --teal-soft: #174149;
    --purple: #c18ce7;
    --purple-soft: #3a2949;
    --orange: #f6b735;
    --orange-dark: #ffd16b;
    --orange-soft: #4d3c1b;
    --coral: #ff7770;
    --coral-soft: #4d2b2d;
    --blue: #7cb1e3;
    --line: rgba(90, 199, 198, 0.28);
    --line-soft: rgba(255, 255, 255, 0.12);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    --shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.18);
  }

  body {
    background:
      radial-gradient(circle at 6% -3%, rgba(90, 199, 198, 0.13), transparent 26rem),
      radial-gradient(circle at 96% 8%, rgba(246, 183, 53, 0.08), transparent 24rem),
      linear-gradient(145deg, var(--page), var(--page-deep));
  }

  .hero {
    background:
      linear-gradient(136deg, rgba(29, 42, 52, 0.96), rgba(23, 65, 73, 0.9)),
      var(--surface);
  }

  .language-control select,
  .legal-nav {
    background: rgba(29, 42, 52, 0.9);
  }

  .legal-nav a.current,
  .button-primary {
    color: #09282b;
  }

  .not-found-code {
    color: #214d52;
  }
}

@media (max-width: 980px) and (min-width: 700px) {
  .site-shell {
    width: min(100% - 48px, 900px);
  }

  .section-list {
    grid-template-columns: 1fr;
  }

  .legal-section:last-child {
    grid-column: auto;
  }
}

@media (max-width: 699px) {
  .site-shell {
    width: min(100% - 20px, var(--content-width));
    padding-top: 10px;
  }

  .hero {
    border-radius: 24px;
  }

  .hero-topline {
    align-items: stretch;
    flex-direction: column;
    padding: 19px 19px 0;
  }

  .language-control,
  .language-control select {
    width: 100%;
  }

  .hero-copy {
    padding: 38px 19px 34px;
  }

  .hero-copy-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-art {
    min-height: 182px;
    max-width: 320px;
  }

  .art-card {
    bottom: 27px;
    width: 68px;
    height: 103px;
    border-width: 3px;
    font-size: 1.8rem;
  }

  .art-card-one {
    left: 18px;
  }

  .art-card-two {
    left: 68px;
  }

  .art-card-three {
    right: 24px;
  }

  .art-ground {
    bottom: 20px;
  }

  .legal-nav {
    top: 6px;
    margin-bottom: 22px;
  }

  .notice {
    align-items: start;
    grid-template-columns: 45px minmax(0, 1fr);
    gap: 13px;
    padding: 18px;
  }

  .notice-symbol {
    width: 42px;
    height: 55px;
    border-radius: 10px;
    font-size: 1.25rem;
  }

  .section-list {
    grid-template-columns: 1fr;
  }

  .legal-section,
  .legal-section:last-child {
    grid-column: auto;
    grid-template-columns: 43px minmax(0, 1fr);
    min-height: 0;
    gap: 13px;
    padding: 21px 18px;
  }

  .section-number {
    width: 39px;
    height: 48px;
    border-radius: 11px;
  }

  .not-found::before {
    left: -2%;
  }

  .not-found::after {
    right: -2%;
  }
}

@media (max-width: 360px) {
  .legal-nav a {
    padding-inline: 8px;
    font-size: 0.8rem;
  }

  .brand-mark {
    width: 52px;
    height: 52px;
  }

  .brand-card {
    top: 11px;
    height: 29px;
  }

  .legal-section,
  .legal-section:last-child {
    grid-template-columns: 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: currentColor;
    --line-soft: currentColor;
  }

  .hero,
  .legal-nav,
  .notice,
  .legal-section,
  .language-control select {
    border-width: 2px;
  }
}

@media print {
  :root {
    color-scheme: light;
    --page: #fff;
    --page-deep: #fff;
    --surface: #fff;
    --ink: #000;
    --muted: #222;
    --quiet: #444;
  }

  body {
    background: #fff;
    font-size: 11pt;
  }

  .site-shell {
    width: 100%;
    padding: 0;
  }

  .hero,
  .legal-section,
  .notice {
    box-shadow: none;
    break-inside: avoid;
  }

  .hero-art,
  .language-control,
  .legal-nav,
  .skip-link,
  .not-found::before,
  .not-found::after {
    display: none;
  }

  a {
    color: inherit;
  }
}

/* Seven Keeper app alignment: the legal pages use the same paper, accents and
   compact PageHeroCard rhythm as the iOS interface. */
:root {
  --page: #FAF5E8;
  --page-deep: #FAF5E8;
  --surface: #FFFCF7;
  --surface-soft: #FFFCF7;
  --ink: #141F2E;
  --muted: rgba(20, 31, 46, 0.68);
  --quiet: rgba(20, 31, 46, 0.54);
  --teal: #0D7A85;
  --teal-dark: #0D7A85;
  --teal-soft: #CCEDE8;
  --purple: #7545A6;
  --purple-soft: #E3D4F5;
  --orange: #EBA11A;
  --orange-dark: #EBA11A;
  --orange-soft: #FFEDB3;
  --coral: #DB4740;
  --coral-soft: #FFDBD1;
  --blue: #0D7A85;
  --line: rgba(13, 122, 133, 0.24);
  --line-soft: rgba(20, 31, 46, 0.12);
  --shadow: 0 12px 28px rgba(20, 31, 46, 0.07);
  --shadow-soft: 0 4px 14px rgba(20, 31, 46, 0.035);
  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --content-width: 720px;
}

body {
  overflow-x: hidden;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  display: none;
}

a {
  color: var(--teal);
}

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

a:focus-visible,
select:focus-visible {
  outline-color: var(--orange);
}

.site-shell {
  width: min(var(--content-width), calc(100% - 32px));
  padding: 22px 0 64px;
}

.hero {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero::before,
.hero::after {
  display: none;
}

.hero-topline {
  align-items: center;
  gap: 18px;
  padding: 0 0 16px;
}

.brand {
  gap: 12px;
  color: var(--ink);
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  display: block;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(20, 31, 46, 0.1);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 6px 14px rgba(20, 31, 46, 0.08);
  object-fit: cover;
}

.brand-card,
.brand-seven {
  display: none;
}

.brand-name {
  font-size: 1rem;
  font-weight: 800;
}

.brand-publisher {
  color: var(--quiet);
  font-size: 0.68rem;
}

.language-control {
  gap: 4px;
  justify-items: end;
}

.language-control label {
  color: var(--muted);
  font-size: 0.68rem;
}

.language-control select {
  min-width: 184px;
  padding: 9px 33px 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.88rem;
}

.hero-copy {
  padding: 0;
}

.hero-copy-grid {
  display: block;
}

.page-hero-card {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(13, 122, 133, 0.2);
  border-radius: var(--radius-xl);
  background: var(--teal-soft);
  box-shadow: 0 4px 12px rgba(20, 31, 46, 0.025);
}

body[data-page="terms"] .page-hero-card {
  border-color: rgba(117, 69, 166, 0.22);
  background: var(--purple-soft);
}

.page-hero-image {
  display: block;
  width: 94px;
  height: 94px;
  border-radius: var(--radius-md);
  background: var(--surface);
  object-fit: cover;
}

.page-hero-content {
  min-width: 0;
}

.kicker {
  margin: 0 0 4px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.04em;
}

body[data-page="terms"] .kicker {
  color: var(--purple);
}

h1 {
  max-width: 100%;
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.15rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.hero-intro {
  max-width: 58ch;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
}

.updated {
  margin: 8px 0 0;
  color: var(--quiet);
  font-size: 0.78rem;
}

.legal-nav {
  top: 10px;
  width: min(440px, 100%);
  margin: 16px auto 22px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 252, 247, 0.92);
  box-shadow: var(--shadow);
}

.legal-nav a {
  min-height: 43px;
  padding: 7px 12px;
  border-radius: var(--radius-md);
  color: var(--muted);
  font-size: 0.88rem;
}

.legal-nav a:hover {
  background: var(--teal-soft);
  color: var(--teal);
}

.legal-nav a.current {
  background: var(--teal);
  color: var(--surface);
}

body[data-page="terms"] .legal-nav a.current {
  background: var(--purple);
}

.notice {
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid rgba(235, 161, 26, 0.3);
  border-radius: var(--radius-lg);
  background: var(--orange-soft);
  box-shadow: none;
}

.notice-amber {
  border-color: rgba(117, 69, 166, 0.24);
  background: var(--purple-soft);
}

.notice-symbol {
  display: none;
}

.notice-illustration {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--surface);
  object-fit: cover;
}

.notice p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.notice strong {
  color: var(--ink);
}

.section-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.legal-section,
.legal-section:last-child {
  display: grid;
  grid-column: auto;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  min-height: 0;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.legal-section:nth-child(4n + 1) {
  border-color: rgba(13, 122, 133, 0.22);
}

.legal-section:nth-child(4n + 2) {
  border-color: rgba(117, 69, 166, 0.2);
}

.legal-section:nth-child(4n + 3) {
  border-color: rgba(235, 161, 26, 0.28);
}

.legal-section:nth-child(4n) {
  border-color: rgba(219, 71, 64, 0.22);
}

.legal-section::before {
  display: none;
}

.section-number {
  display: none;
}

.section-illustration {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--page);
  object-fit: cover;
}

.legal-section:nth-child(4n + 1) .section-illustration {
  background: var(--teal-soft);
}

.legal-section:nth-child(4n + 2) .section-illustration {
  background: var(--purple-soft);
}

.legal-section:nth-child(4n + 3) .section-illustration {
  background: var(--orange-soft);
}

.legal-section:nth-child(4n) .section-illustration {
  background: var(--coral-soft);
}

.legal-section h2 {
  margin: 0 0 5px;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.2;
}

.legal-section p,
.legal-section:last-child p {
  max-width: 68ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.noscript-note {
  margin-top: 14px;
  padding: 13px 15px;
  border: 1px solid rgba(235, 161, 26, 0.35);
  border-radius: var(--radius-md);
  background: var(--orange-soft);
  color: var(--ink);
}

.site-footer {
  gap: 4px;
  margin-top: 28px;
  padding: 20px 16px 0;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 0.8rem;
}

.site-footer strong {
  color: var(--ink);
}

.not-found {
  display: grid;
  min-height: 460px;
  align-content: center;
  justify-items: center;
  padding: 18px 0;
}

.not-found::before,
.not-found::after {
  display: none;
}

.not-found .page-hero-card {
  text-align: left;
}

.not-found-code {
  margin: 22px 0 0;
  color: var(--teal);
  font-size: clamp(4rem, 18vw, 7rem);
  font-weight: 900;
  line-height: 0.8;
}

.button-primary {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--surface);
}

.button-primary:hover {
  background: var(--ink);
  color: var(--surface);
}

.button-secondary {
  background: var(--surface);
  color: var(--ink);
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0E1217;
    --page-deep: #0E1217;
    --surface: #1A1F26;
    --surface-soft: #1A1F26;
    --ink: #F5F0E8;
    --muted: rgba(245, 240, 232, 0.72);
    --quiet: rgba(245, 240, 232, 0.56);
    --teal: #59CCCC;
    --teal-dark: #59CCCC;
    --teal-soft: #142B2E;
    --purple: #B084D5;
    --purple-soft: #30223C;
    --orange: #FFBF3D;
    --orange-dark: #FFBF3D;
    --orange-soft: #3B3015;
    --coral: #FF6B63;
    --coral-soft: #382022;
    --line: rgba(89, 204, 204, 0.3);
    --line-soft: rgba(245, 240, 232, 0.14);
    --shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
    --shadow-soft: 0 4px 14px rgba(0, 0, 0, 0.18);
  }

  .legal-nav {
    background: rgba(26, 31, 38, 0.94);
  }

  .legal-nav a.current,
  .button-primary {
    color: #09282B;
  }

  .button-primary:hover {
    background: var(--surface);
    color: var(--ink);
  }
}

@media (max-width: 699px) {
  .site-shell {
    width: min(var(--content-width), calc(100% - 24px));
    padding-top: 12px;
  }

  .hero-topline {
    align-items: flex-start;
  }

  .page-hero-card {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
    padding: 13px;
  }

  .page-hero-image {
    width: 78px;
    height: 78px;
  }

  h1 {
    font-size: clamp(1.85rem, 9vw, 2.55rem);
  }

  .hero-intro {
    font-size: 0.94rem;
  }

  .notice {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .notice-illustration {
    width: 54px;
    height: 54px;
  }

  .notice p,
  .legal-section p,
  .legal-section:last-child p {
    font-size: 0.9rem;
  }

  .legal-section,
  .legal-section:last-child {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .section-illustration {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 480px) {
  .hero-topline {
    flex-direction: column;
    gap: 12px;
  }

  .language-control,
  .language-control select {
    width: 100%;
  }

  .language-control {
    justify-items: stretch;
  }

  .language-control select {
    min-width: 0;
  }
}

@media (max-width: 360px) {
  .page-hero-card {
    grid-template-columns: 1fr;
  }

  .page-hero-image {
    width: 72px;
    height: 72px;
  }

  .legal-section,
  .legal-section:last-child {
    grid-template-columns: 1fr;
  }
}

@media print {
  .brand-mark,
  .page-hero-image,
  .notice-illustration,
  .section-illustration,
  .language-control,
  .legal-nav,
  .skip-link {
    display: none;
  }
}
