.page-hero-legal {
  padding: 28px 0 12px;
}

.page-hero-legal .page-hero-banner {
  padding: 28px 32px;
  border-radius: 22px;
  background:
    radial-gradient(ellipse 70% 100% at 0% 0%, rgba(255, 255, 255, 0.07), transparent 55%),
    radial-gradient(ellipse 50% 80% at 100%  100%, rgba(118, 185, 0, 0.056), transparent 50%),
    var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.page-hero-legal .page-hero-eyebrow {
  color: #e4e4e7;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

.page-hero-legal h1 {
  margin: 0;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
}

.legal-page {
  position: relative;
  padding-top: 28px;
  padding-bottom: 88px;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 255, 255, 0.03), transparent 70%),
    linear-gradient(180deg, transparent 0%, rgba(10, 14, 23, 0.4) 100%);
}

.legal-updated {
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.guide-card .game-panel-title a {
  color: inherit;
  text-decoration: none;
}

.guide-card .game-panel-title a:hover {
  color: #e4e4e7;
}

.editorial-screen.guides-index-screen .catalog-head-inner {
  padding-bottom: 0;
  border-bottom: 0;
}

.editorial-screen.guides-index-screen .legal-page {
  padding-top: 24px;
}

.guide-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--text-soft);
  font-size: .82rem;
}

.guide-breadcrumb [aria-current],
.guide-breadcrumb a:hover {
  color: var(--text);
}

.guides-library {
  display: grid;
  grid-template-columns: minmax(175px, 200px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.editorial-screen .guides-library .guide-topics {
  flex-direction: column;
  flex-wrap: nowrap;
}

.guide-topics h2 {
  margin: 6px 10px 4px;
  color: var(--text-soft);
  font-size: .8rem;
  font-weight: 600;
}

.editorial-screen .guides-library .guide-topic-link {
  justify-content: flex-start;
  gap: 9px;
  min-width: 0;
}

.guide-topic-link .ui-icon,
.guide-directory-link .ui-icon {
  flex: none;
}

.guide-topic-count {
  margin-inline-start: auto;
  font-size: .76rem;
  font-variant-numeric: tabular-nums;
}

.guide-directory > h2 {
  margin: 0 0 12px;
  font-size: 1.12rem;
}

.guide-directory-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-directory-list li + li {
  border-top: 1px solid var(--border-strong);
}

.guide-directory-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 10px;
  border-radius: 6px;
  color: var(--text-soft);
}

.guide-directory-link:hover {
  background: rgb(255 255 255 / 4%);
  color: var(--primary-text);
}

.guide-directory-link:focus-visible {
  outline: 2px solid var(--primary-text);
  outline-offset: -3px;
}

.guide-directory-copy {
  min-width: 0;
}

.guide-directory-copy strong {
  display: block;
  color: var(--text);
  font-size: .96rem;
  font-weight: 600;
}

.guide-directory-copy > span {
  display: block;
  margin-top: 2px;
  color: var(--text-soft);
  font-size: .85rem;
  line-height: 1.5;
}

.guide-sources ul {
  margin: 10px 0 0;
  padding-inline-start: 1.25rem;
}

.guide-sources a {
  text-decoration: underline;
  text-underline-offset: .14em;
}

@media (max-width: 680px) {
  .guides-library {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .editorial-screen .guides-library .guide-topics {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .guide-topics h2 {
    flex-basis: 100%;
  }

  .editorial-screen .guides-library .guide-topic-link {
    gap: 6px;
    padding-inline: 7px;
  }
}

.home-guides {
  padding-top: 0;
  padding-bottom: 48px;
}

.home-guides-head {
  margin-bottom: 24px;
}

.home-guides-title {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

.home-guides-sub {
  margin: 0;
  color: var(--text-soft);
}

.home-guides-more {
  margin: 24px 0 0;
}

.home-guides-more a {
  color: #d4d4d8;
  font-weight: 600;
}

.hero-sub-secondary {
  margin-top: 12px;
  font-size: 0.98rem;
  color: var(--text-soft);
  max-width: 42rem;
}

.fuente-editorial {
  grid-column: 1 / -1;
}


.legal-layout {
  display: grid;
  grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.legal-aside {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.legal-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.legal-nav-link {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-soft);
  border: 1px solid transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.legal-nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.legal-nav-link.is-active {
  color: #f4f4f5;
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 12px rgba(255, 255, 255, 0.1);
}

.legal-aside-note {
  margin: 0;
  padding: 12px 14px;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-soft);
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.125);
  background: rgba(255, 255, 255, 0.03);
}

.legal-main {
  min-width: 0;
}

.legal-lead {
  margin: 0 0 22px;
  padding: 18px 22px;
  font-size: 1.02rem;
  line-height: 1.65;
  color: #e2e8f0;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(118, 185, 0, 0.035));
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
}

.guide-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -8px 0 22px;
}

.guide-quick-links a {
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #e4e4e7;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.84rem;
  font-weight: 650;
  text-decoration: none;
}

.guide-quick-links a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.275);
  background: rgba(255, 255, 255, 0.09);
}

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.legal-block {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.015) 100%);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.legal-block::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #3f3f46, #9fd93a);
  opacity: 0.85;
}

.legal-block:hover {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 48px rgba(0, 0, 0, 0.24);
}

.legal-block-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 26px 0;
}

.legal-block-index {
  flex-shrink: 0;
  margin-top: 2px;
  padding: 4px 8px;
  border-radius: 8px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #d4d4d8;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.125);
}

.legal-block-head h2 {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.35;
}

.legal-block-body {
  padding: 14px 26px 24px 72px;
}

.legal-block-body p {
  margin: 0 0 14px;
  line-height: 1.75;
  color: #cbd5e1;
  font-size: 0.96rem;
}

.legal-block-body p:last-child {
  margin-bottom: 0;
}

.legal-social-links {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.legal-social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #e2e8f0;
  text-decoration: none;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.legal-social-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  object-fit: contain;
}

.legal-social-link:hover {
  color: #fff;
  border-color: rgba(118, 185, 0, 0.315);
  background: rgba(118, 185, 0, 0.056);
}

.legal-social-link--x:hover {
  border-color: rgba(255, 255, 255, 0.35);
}

.legal-social-link--youtube:hover {
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.08);
}

.legal-social-link--patreon:hover {
  border-color: rgba(255, 66, 77, 0.5);
  background: rgba(255, 66, 77, 0.08);
}

.legal-social-caption {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #94a3b8;
  text-transform: lowercase;
}

@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .legal-aside {
    position: static;
  }

  .legal-nav {
    flex-direction: row;
    flex-wrap: wrap;
    border-radius: 14px;
  }

  .legal-nav-link {
    flex: 1 1 auto;
    text-align: center;
    min-width: calc(50% - 8px);
  }
}

@media (max-width: 640px) {
  .legal-block-body {
    padding: 12px 20px 20px;
  }

  .legal-block-head {
    flex-direction: column;
    gap: 10px;
    padding: 20px 20px 0;
  }

  .legal-lead {
    padding: 16px 18px;
    font-size: 0.95rem;
  }
}

.error-page-inner {
  text-align: center;
  padding: 64px 0 80px;
}

.error-code {
  margin: 0;
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 800;
  line-height: 1;
  color: rgba(148, 163, 184, 0.35);
}

.error-page h1 {
  margin: 12px 0 10px;
}

.error-desc {
  margin: 0 auto 24px;
  max-width: 480px;
  color: var(--text-soft);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.error-page--404 .error-page-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 58px);
  max-width: 880px;
  padding: clamp(48px, 7vw, 88px) clamp(24px, 5vw, 58px);
  text-align: start;
}

.error-page--404 .error-code {
  color: var(--primary-text);
  font: 600 0.875rem/1.25 "Geist Mono", monospace;
}

.error-page--404 h1 {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.error-page--404 .error-desc {
  max-width: 36ch;
  margin: 14px 0 24px;
}

.error-page--404 .error-actions {
  justify-content: flex-start;
}

.error-404-mascot {
  display: grid;
  place-items: center;
}

.error-404-mascot img {
  display: block;
  width: min(100%, 320px);
  height: auto;
}

@media (max-width: 600px) {
  .error-page--404 .error-page-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .error-page--404 .error-desc {
    margin-inline: auto;
  }

  .error-page--404 .error-actions {
    justify-content: center;
  }

  .error-404-mascot img {
    width: min(100%, 235px);
  }
}

.legal-cookie-reset {
  margin-top: 32px;
  padding: 20px 22px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.legal-cookie-reset-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.legal-cookie-reset-desc {
  margin: 0 0 14px;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

.legal-cookie-reset-btn {
  padding: 10px 16px;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--primary), #52525b);
}
