/* ==========================================================================
   Privacy + Terms pages
   Loaded after styles.css (global: colors, header, footer, buttons, shared parts)
   ========================================================================== */
.legal-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.legal-hero__meta > span {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
}
.legal-hero__meta strong {
  color: var(--white);
}
.legal-switch {
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.legal-switch a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  transition:
    background 0.2s,
    color 0.2s;
}
.legal-switch a:hover {
  color: var(--white);
}
.legal-switch a[aria-current] {
  background: var(--white);
  color: #000;
}

.legal {
  background: var(--secondary);
  padding: clamp(48px, 6vw, 88px) 0 clamp(72px, 8vw, 120px);
}
.legal__inner {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 760px);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.legal__toc {
  position: sticky;
  top: calc(var(--header-h) + 28px);
}
.legal__toc-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 14px;
}
.legal__toc ol {
  list-style: none;
  counter-reset: toc;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}
.legal__toc li {
  counter-increment: toc;
}
.legal__toc a {
  display: flex;
  gap: 10px;
  padding: 9px 0 9px 18px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
  transition:
    color 0.2s,
    border-color 0.2s;
}
.legal__toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
  padding-top: 2px;
}
.legal__toc a:hover {
  color: var(--white);
}
.legal__toc a.is-current {
  color: var(--white);
  border-left-color: #ebbe4d;
}
.legal__toc a.is-current::before {
  color: #ebbe4d;
}

.legal__note {
  padding: 18px 22px;
  margin-bottom: 40px;
  border: 1px solid rgba(235, 190, 77, 0.45);
  background: rgba(235, 190, 77, 0.08);
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}
.legal__section {
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.legal__section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}
.legal__section h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.legal__num {
  font-size: 14px;
  font-weight: 800;
  color: #ebbe4d;
}
.legal__section p,
.legal__section li {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.78);
}
.legal__section p + p,
.legal__section p + ul,
.legal__section ul + p {
  margin-top: 14px;
}
.legal__section ul {
  display: grid;
  gap: 8px;
  padding-left: 0;
}
.legal__section li {
  position: relative;
  padding-left: 22px;
}
.legal__section li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.75em;
  width: 7px;
  height: 7px;
  background: var(--primary);
}
.legal__section strong {
  color: var(--white);
}
@media (max-width: 900px) {
  .legal__inner {
    grid-template-columns: 1fr;
  }
  .legal__toc {
    position: static;
    padding: 20px;
    background: #0e0e0f;
    border: 1px solid rgba(255, 255, 255, 0.12);
  }
}
