/* AldSports Legal & Information Pages Stylesheet */
.legal-page {
  color: var(--ink);
  background: #f7faf7;
  min-height: 100vh;
}

[data-theme="dark"] .legal-page,
body.dark-theme .legal-page {
  background: var(--page);
  color: var(--ink);
}

.legal-shell {
  width: min(1080px, calc(100% - 40px));
  margin-inline: auto;
}

.legal-hero {
  padding: 125px 0 76px;
  background:
    radial-gradient(circle at 82% 20%, rgba(99, 233, 133, 0.2), transparent 26%),
    linear-gradient(145deg, #edf7ef 0%, #f8faf7 56%, #f3efe6 100%);
  border-bottom: 1px solid #dfe8e1;
}

[data-theme="dark"] .legal-hero,
body.dark-theme .legal-hero {
  background:
    radial-gradient(circle at 82% 20%, rgba(34, 197, 94, 0.15), transparent 26%),
    linear-gradient(145deg, #0f1912 0%, #0c140e 56%, #121a14 100%);
  border-bottom-color: var(--line);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 45px;
  color: #42604b;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.15s ease;
}

.back-link:hover {
  color: var(--green);
}

[data-theme="dark"] .back-link,
body.dark-theme .back-link {
  color: #9eb8a6;
}

.legal-hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #27643a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

[data-theme="dark"] .legal-hero .eyebrow,
body.dark-theme .legal-hero .eyebrow {
  color: #62df89;
}

.legal-hero .eyebrow span {
  width: 28px;
  height: 2px;
  background: var(--green);
}

.legal-hero h1 {
  max-width: 760px;
  margin: 18px 0 20px;
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 76px);
  font-weight: 750;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.legal-intro {
  max-width: 760px;
  margin: 0;
  color: #4d5e52;
  font-size: 18px;
  line-height: 1.7;
}

[data-theme="dark"] .legal-intro,
body.dark-theme .legal-intro {
  color: var(--muted);
}

.updated {
  margin: 25px 0 0;
  color: #718077;
  font-size: 11px;
}

.legal-body {
  padding: 76px 0 100px;
}

.legal-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  justify-content: space-between;
  gap: 70px;
}

.legal-aside {
  position: sticky;
  top: 105px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
}

.legal-aside > span {
  margin-bottom: 8px;
  color: #1d3b27;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

[data-theme="dark"] .legal-aside > span,
body.dark-theme .legal-aside > span {
  color: #9eb8a6;
}

.legal-aside a {
  padding-left: 12px;
  color: #718077;
  border-left: 1px solid #d8e2da;
  font-size: 10px;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

[data-theme="dark"] .legal-aside a,
body.dark-theme .legal-aside a {
  color: #8c9e92;
  border-left-color: var(--line);
}

.legal-aside a:hover,
.legal-aside a.active {
  color: var(--green);
  border-color: var(--green);
}

.legal-callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 15px;
  margin-bottom: 54px;
  padding: 24px;
  color: #12321c;
  background: #e6f7e9;
  border: 1px solid #bfe8c7;
  border-radius: 20px;
}

[data-theme="dark"] .legal-callout,
body.dark-theme .legal-callout {
  color: #d1f2d9;
  background: #102817;
  border-color: #1a4224;
}

.legal-callout .svg-icon {
  margin-top: 2px;
  color: #1f8c3d;
  font-size: 22px;
}

[data-theme="dark"] .legal-callout .svg-icon,
body.dark-theme .legal-callout .svg-icon {
  color: #62df89;
}

.legal-callout p {
  margin: 0;
  font-weight: 650;
  line-height: 1.6;
}

.legal-section {
  scroll-margin-top: 100px;
  padding: 0 0 38px;
  margin-bottom: 38px;
  border-bottom: 1px solid #dfe7e1;
}

[data-theme="dark"] .legal-section,
body.dark-theme .legal-section {
  border-bottom-color: var(--line);
}

.legal-section h2 {
  margin: 0 0 18px;
  color: #102c19;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

[data-theme="dark"] .legal-section h2,
body.dark-theme .legal-section h2 {
  color: var(--ink);
}

.legal-section p,
.legal-section li {
  color: #4c5c51;
  font-size: 14px;
  line-height: 1.85;
}

[data-theme="dark"] .legal-section p,
[data-theme="dark"] .legal-section li,
body.dark-theme .legal-section p,
body.dark-theme .legal-section li {
  color: var(--muted);
}

.legal-section p {
  margin: 0 0 14px;
}

.legal-section ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

.legal-section a {
  color: #187633;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

[data-theme="dark"] .legal-section a,
body.dark-theme .legal-section a {
  color: #62df89;
}

.help-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-top: 60px;
  padding: 30px;
  color: white;
  background: #102c19;
  border-radius: 24px;
}

.help-card span {
  color: #9fc9aa;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.help-card h2 {
  margin: 5px 0 0;
  font-family: var(--font-display);
  font-size: 25px;
  color: #fff;
}

.help-button {
  flex: 0 0 auto;
  color: #08210f !important;
  background: var(--green-bright) !important;
  font-size: 11px;
  font-weight: 800;
  padding: 12px 22px;
  border-radius: 999px;
}

@media (max-width: 820px) {
  .legal-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .legal-aside {
    display: none;
  }
}

@media (max-width: 560px) {
  .legal-shell {
    width: min(100% - 28px, 1080px);
  }
  .legal-hero {
    padding: 105px 0 60px;
  }
  .back-link {
    margin-bottom: 35px;
  }
  .legal-hero h1 {
    font-size: 48px;
  }
  .legal-intro {
    font-size: 15px;
  }
  .legal-body {
    padding: 55px 0 76px;
  }
  .help-card {
    align-items: flex-start;
    flex-direction: column;
  }
}
