/* ==============================
   YOJUGANDO — Global styles
   ============================== */

:root {
  --bg: #0b0d10;
  --bg-soft: #111419;
  --card: #151920;
  --card-hover: #1a1f27;
  --text: #f5f7fa;
  --muted: #9ca6b5;
  --line: #262c35;
  --accent: #dfff00;
  --accent-dark: #b9d500;
  --danger: #ff667a;
  --radius: 22px;
  --shadow: 0 20px 50px rgba(0,0,0,.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(11, 13, 16, .80);
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -.03em;
}

.brand-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 24px rgba(223,255,0,.35);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: .95rem;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.hero {
  padding: 100px 0 80px;
  overflow: hidden;
}

.hero-grid,
.split-section,
.game-layout,
.article-layout {
  display: grid;
  gap: 46px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .16em;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 14px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -.04em;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(3.1rem, 7vw, 6.6rem);
  max-width: 900px;
}

.tool-hero h1 {
  font-size: clamp(3rem, 7vw, 5.6rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
  font-size: 1.45rem;
}

.accent {
  color: var(--accent);
}

.hero-copy,
.tool-hero p,
.section-heading p,
.body-copy,
article p,
.info-card p {
  color: var(--muted);
}

.hero-copy {
  max-width: 680px;
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 24px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  font-weight: 800;
  cursor: pointer;
}

.button-primary {
  background: var(--accent);
  color: #0b0d10;
  border-color: var(--accent);
}

.button-primary:hover {
  background: var(--accent-dark);
}

.button-secondary {
  background: var(--card);
}

.micro-features {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: .92rem;
}

.hero-card,
.game-panel,
.info-card,
.related-tools {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 28px;
  transform: rotate(1.2deg);
}

.hero-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .10em;
}

.live-badge {
  color: var(--accent);
}

.demo-score {
  margin: 34px 0 4px;
  font-size: clamp(4rem, 8vw, 7.5rem);
  font-weight: 900;
  letter-spacing: -.08em;
}

.demo-score small {
  font-size: .18em;
  color: var(--muted);
  letter-spacing: .04em;
}

.hero-card p {
  color: var(--muted);
}

.fake-progress {
  width: 100%;
  height: 9px;
  margin: 28px 0 20px;
  border-radius: 999px;
  background: #252a31;
  overflow: hidden;
}

.fake-progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
}

.text-link {
  font-weight: 800;
}

.section {
  padding: 86px 0;
}

.compact-top {
  padding-top: 28px;
}

.alt-section {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 680px;
  margin-bottom: 36px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tool-card {
  min-height: 210px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: start;
}

.tool-card-featured:hover {
  transform: translateY(-3px);
  background: var(--card-hover);
  border-color: rgba(223,255,0,.35);
}

.tool-card-disabled {
  opacity: .62;
}

.tool-icon {
  font-size: 2rem;
}

.tool-status {
  display: inline-block;
  margin-bottom: 10px;
  font-size: .76rem;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .10em;
}

.tool-status.muted {
  color: var(--muted);
}

.tool-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.tool-arrow {
  font-size: 1.8rem;
}

.split-section {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.body-copy {
  font-size: 1.08rem;
}

.site-footer {
  padding: 54px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  color: var(--muted);
}

.footer-inner .brand {
  color: var(--text);
}

.footer-inner p {
  margin: 10px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: start;
}

/* ==============================
   CPS Test
   ============================== */

.tool-hero {
  padding: 76px 0 34px;
}

.tool-hero p {
  max-width: 720px;
  font-size: 1.08rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--muted);
}

.back-link:hover {
  color: var(--text);
}

.game-layout {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  align-items: start;
}

.game-panel {
  padding: 24px;
}

.duration-selector {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  margin-bottom: 24px;
  background: #0f1216;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.duration-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 9px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 800;
}

.duration-button.active {
  color: #0b0d10;
  background: var(--accent);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.stat {
  padding: 16px;
  background: #101318;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
}

.stat strong {
  display: block;
  margin-top: 3px;
  font-size: 1.5rem;
}

.click-area {
  width: 100%;
  min-height: 360px;
  padding: 30px;
  border: 1px solid rgba(223,255,0,.18);
  border-radius: 18px;
  background:
    radial-gradient(circle at center, rgba(223,255,0,.08), transparent 46%),
    #0f1216;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform .08s ease, border-color .2s ease, background .2s ease;
}

.click-area:hover {
  border-color: rgba(223,255,0,.45);
}

.click-area:active {
  transform: scale(.992);
}

.click-area.running {
  background:
    radial-gradient(circle at center, rgba(223,255,0,.12), transparent 50%),
    #101318;
}

.click-area.finished {
  pointer-events: none;
  opacity: .35;
}

.click-area span {
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -.03em;
}

.click-area small {
  margin-top: 6px;
  color: var(--muted);
}

.result-panel {
  margin-top: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #101318;
}

.hidden {
  display: none;
}

.result-score {
  font-size: clamp(3.8rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.07em;
}

.result-panel p {
  margin: 12px 0 20px;
  color: var(--muted);
}

.result-meta {
  display: flex;
  gap: 18px;
  color: var(--muted);
  margin-bottom: 22px;
}

.info-card,
.related-tools {
  padding: 24px;
}

.personal-best {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.personal-best strong {
  font-size: 4rem;
  line-height: 1;
  letter-spacing: -.07em;
}

.personal-best span {
  color: var(--muted);
  font-weight: 800;
}

.info-card hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 28px 0;
}

.info-card h2 {
  font-size: 1.45rem;
}

.article-layout {
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .55fr);
  align-items: start;
}

.article-layout article {
  max-width: 760px;
}

.article-layout article h2 {
  margin-top: 38px;
  font-size: 1.8rem;
}

.article-layout article h2:first-child {
  margin-top: 0;
}

.mini-related-card {
  padding: 16px;
  margin-top: 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #101318;
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 820px) {
  .nav a:not(:last-child) {
    display: none;
  }

  .hero {
    padding-top: 70px;
  }

  .hero-grid,
  .split-section,
  .game-layout,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .tool-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    transform: none;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1160px);
  }

  .site-header {
    position: static;
  }

  .hero {
    padding: 54px 0 58px;
  }

  .section {
    padding: 62px 0;
  }

  h1 {
    font-size: 3.2rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .tool-card {
    grid-template-columns: auto 1fr;
  }

  .tool-arrow {
    display: none;
  }

  .stats-row {
    gap: 6px;
  }

  .stat {
    padding: 12px;
  }

  .stat strong {
    font-size: 1.22rem;
  }

  .click-area {
    min-height: 300px;
  }

  .result-meta {
    flex-direction: column;
    gap: 5px;
  }
}


/* ==============================
   Reaction Test
   ============================== */

.reaction-area {
  width: 100%;
  min-height: 390px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: background .18s ease, border-color .18s ease, transform .08s ease;
}

.reaction-area:active {
  transform: scale(.993);
}

.reaction-area span {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -.04em;
}

.reaction-area small {
  margin-top: 8px;
  font-size: .95rem;
}

.reaction-area.ready {
  background:
    radial-gradient(circle at center, rgba(223,255,0,.08), transparent 48%),
    #101318;
  border-color: rgba(223,255,0,.22);
}

.reaction-area.ready small,
.reaction-area.waiting small,
.reaction-area.too-soon small {
  color: var(--muted);
}

.reaction-area.waiting {
  background: #171b22;
  border-color: #313843;
}

.reaction-area.go {
  background:
    radial-gradient(circle at center, rgba(223,255,0,.30), transparent 60%),
    var(--accent);
  color: #0b0d10;
  border-color: var(--accent);
}

.reaction-area.go small {
  color: rgba(11,13,16,.72);
}

.reaction-area.too-soon {
  background:
    radial-gradient(circle at center, rgba(255,102,122,.15), transparent 55%),
    #1a1115;
  border-color: rgba(255,102,122,.55);
}

.reaction-area.too-soon span {
  color: var(--danger);
}

.related-link {
  display: block;
}

.related-link:hover {
  border-color: rgba(223,255,0,.35);
  color: var(--text);
}


/* ==============================
   Sensitivity Converter
   ============================== */

.sensitivity-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, .65fr);
  gap: 28px;
  align-items: start;
}

.converter-panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015));
  box-shadow: var(--shadow);
}

.converter-games {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 12px;
}

.game-input-card label,
.field-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.form-control {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 13px;
  border: 1px solid var(--line);
  outline: none;
  background: #0f1216;
  color: var(--text);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.form-control:focus {
  border-color: rgba(223,255,0,.55);
  box-shadow: 0 0 0 3px rgba(223,255,0,.08);
}

.swap-button {
  width: 50px;
  height: 52px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: #151920;
  cursor: pointer;
  font-size: 1.35rem;
  font-weight: 900;
  transition: transform .15s ease, border-color .15s ease;
}

.swap-button:hover {
  transform: translateY(-2px);
  border-color: rgba(223,255,0,.45);
}

.input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.converter-main-button {
  width: 100%;
  margin-top: 18px;
}

.form-error {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255,102,122,.35);
  border-radius: 12px;
  background: rgba(255,102,122,.08);
  color: #ff9aa8;
  font-weight: 700;
}

.conversion-result {
  margin-top: 24px;
  padding: 26px;
  border: 1px solid rgba(223,255,0,.20);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(223,255,0,.09), transparent 34%),
    #101318;
}

.conversion-result-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
}

.conversion-result-top p {
  margin: -7px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.copy-button,
.text-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.copy-button {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #151920;
}

.copy-button:hover,
.text-button:hover {
  color: var(--text);
}

.converted-value {
  margin: 26px 0 24px;
}

.converted-value strong {
  display: block;
  font-size: clamp(4rem, 9vw, 7rem);
  line-height: .92;
  letter-spacing: -.08em;
  color: var(--accent);
}

.converted-value span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 700;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.metric-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #0d1014;
}

.metric-card span,
.metric-card small {
  display: block;
  color: var(--muted);
  font-size: .78rem;
}

.metric-card strong {
  display: block;
  margin: 2px 0;
  font-size: 1.35rem;
}

.conversion-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: .86rem;
}

.sensitivity-side h2 {
  font-size: 1.35rem;
}

.history-section {
  padding-top: 10px;
}

.small-heading {
  margin-bottom: 22px;
}

.small-heading h2 {
  margin-bottom: 10px;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.conversion-history {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.history-card {
  text-align: left;
  min-height: 130px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--card);
  cursor: pointer;
}

.history-card:hover {
  border-color: rgba(223,255,0,.35);
  background: var(--card-hover);
}

.history-card span,
.history-card strong,
.history-card small {
  display: block;
}

.history-route {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.history-card strong {
  font-size: 1.12rem;
}

.history-card small {
  margin-top: 5px;
  color: var(--muted);
}

.empty-history {
  grid-column: 1 / -1;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 15px;
  color: var(--muted);
  text-align: center;
}

.text-button {
  margin-top: 14px;
  padding: 0;
}

@media (max-width: 900px) {
  .sensitivity-layout {
    grid-template-columns: 1fr;
  }

  .conversion-history {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .converter-panel {
    padding: 16px;
  }

  .converter-games {
    grid-template-columns: 1fr;
  }

  .swap-button {
    width: 100%;
    height: 44px;
  }

  .input-grid,
  .metric-grid,
  .conversion-history {
    grid-template-columns: 1fr;
  }

  .conversion-result {
    padding: 18px;
  }

  .converted-value strong {
    font-size: 4rem;
  }
}


/* ==============================
   Energy / Gaming Cost Calculator
   ============================== */

.energy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, .65fr);
  gap: 28px;
  align-items: start;
}

.energy-panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015));
  box-shadow: var(--shadow);
}

.energy-step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.energy-step:first-child {
  padding-top: 0;
}

.energy-step:nth-of-type(4) {
  border-bottom: 0;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(223,255,0,.09);
  border: 1px solid rgba(223,255,0,.20);
  color: var(--accent);
  font-weight: 900;
}

.step-content > label,
.optional-power > label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.field-help {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: .82rem;
}

.input-with-unit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}

.input-with-unit > span {
  color: var(--muted);
  font-weight: 800;
}

.input-price {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.optional-power {
  margin-top: 15px;
}

.energy-result {
  margin-top: 24px;
  padding: 28px;
  border: 1px solid rgba(223,255,0,.20);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(223,255,0,.10), transparent 35%),
    #101318;
}

.energy-hero-result {
  padding: 4px 0 28px;
}

.energy-hero-result > span,
.energy-hero-result > small {
  display: block;
  color: var(--muted);
}

.energy-hero-result > strong {
  display: block;
  margin: 6px 0;
  font-size: clamp(3.8rem, 9vw, 6.8rem);
  line-height: .94;
  letter-spacing: -.075em;
  color: var(--accent);
}

.energy-hero-result > small {
  font-size: 1rem;
  font-weight: 800;
}

.energy-metrics {
  margin-bottom: 12px;
}

.energy-breakdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.energy-breakdown > div {
  padding: 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.025);
}

.energy-breakdown span,
.energy-breakdown strong {
  display: block;
}

.energy-breakdown span {
  color: var(--muted);
  font-size: .76rem;
}

.energy-breakdown strong {
  margin-top: 3px;
}

.savings-box {
  margin-top: 22px;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #0d1014;
}

.savings-box h2 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.savings-box p {
  margin-bottom: 0;
  color: var(--muted);
}

.savings-box p strong {
  color: var(--text);
}

.energy-copy {
  margin-top: 16px;
}

.energy-side h2 {
  font-size: 1.35rem;
}

.formula-text {
  padding: 10px 12px;
  border-radius: 10px;
  background: #0d1014;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .86rem;
}

@media (max-width: 900px) {
  .energy-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .energy-panel,
  .energy-result {
    padding: 16px;
  }

  .energy-step {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
  }

  .step-number {
    width: 30px;
    height: 30px;
  }

  .energy-breakdown {
    grid-template-columns: 1fr;
  }

  .energy-hero-result > strong {
    font-size: 3.5rem;
  }
}


/* ==============================
   V5 — Footer + Institutional pages
   ============================== */

.inline-link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(223,255,0,.45);
  text-underline-offset: 4px;
}

.inline-link:hover {
  color: var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(130px, .65fr));
  gap: 34px;
  padding-bottom: 38px;
}

.footer-brand-block p {
  max-width: 320px;
  margin: 12px 0 6px;
  color: var(--muted);
}

.footer-brand-block small {
  color: var(--muted);
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-column strong {
  margin-bottom: 5px;
  color: var(--text);
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer-column a {
  color: var(--muted);
}

.footer-column a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
}

.legal-hero {
  padding: 82px 0 46px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 75% 10%, rgba(223,255,0,.06), transparent 30%);
}

.legal-container {
  max-width: 820px;
}

.legal-hero h1 {
  margin-bottom: 18px;
  font-size: clamp(2.8rem, 7vw, 5rem);
}

.legal-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
}

.legal-section {
  padding: 64px 0 90px;
}

.legal-section h2 {
  margin-top: 48px;
  margin-bottom: 14px;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.legal-section h2:first-child {
  margin-top: 0;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
}

.legal-section strong {
  color: var(--text);
}

.legal-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}

.intro-card {
  margin-bottom: 38px;
}

.intro-card p {
  margin-bottom: 0;
  font-size: 1.05rem;
}

.policy-meta {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: .82rem;
}

.policy-list {
  padding-left: 22px;
}

.policy-list li {
  margin-bottom: 9px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 42px;
}

.contact-grid h2 {
  margin-top: 0;
  word-break: break-word;
  font-size: 1.35rem;
}

.contact-button {
  margin-top: 10px;
}

.cookie-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 22px 0 36px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.cookie-table th,
.cookie-table td {
  padding: 15px 17px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.cookie-table th {
  color: var(--text);
  background: #101318;
  font-size: .78rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.cookie-table td {
  color: var(--muted);
}

.cookie-table tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 820px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .legal-hero {
    padding: 58px 0 34px;
  }

  .legal-section {
    padding: 46px 0 70px;
  }

  .legal-card {
    padding: 18px;
  }
}