/* Legal — Terms & Privacy */

.page-legal .page-content {
  display: flow-root;
}

.leg-page--editorial {
  --clr-bg: #0b0c0e;
  --clr-surface: #13151a;
  --clr-border: rgba(255, 255, 255, 0.07);
  --clr-accent: #00c896;
  --clr-text: #f0f0f0;
  --clr-muted: #8a8f9e;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  float: left;
  width: 100%;
  clear: both;
  font-family: var(--th-font-family);
  color: var(--clr-text);
  background: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
}

.leg-container {
  width: min(1200px, calc(100% - 48px));
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.leg-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.leg-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(0.7) brightness(0.45);
}

.leg-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8, 14, 12, 0.92) 0%, rgba(11, 12, 14, 0.75) 100%);
}

.leg-hero__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--clr-bg));
}

.leg-hero__container {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 48px 0 40px;
}

.leg-hero__content {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.leg-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 12px;
}

.leg-hero__title {
  margin: 0 0 10px;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
}

.leg-hero__sub {
  margin: 0 0 8px;
  max-width: 640px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--clr-muted);
}

.leg-hero__updated {
  margin: 0 0 16px;
  font-size: 13px;
  color: rgba(232, 236, 240, 0.55);
}

.leg-hero__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
}

.leg-hero__breadcrumb li:not(:last-child)::after {
  content: '/';
  margin-left: 8px;
  color: rgba(255, 255, 255, 0.25);
}

.leg-hero__breadcrumb a {
  color: var(--clr-muted);
  text-decoration: none;
}

.leg-hero__breadcrumb a:hover {
  color: var(--clr-accent);
}

.leg-hero__breadcrumb .active {
  color: #fff;
}

.leg-main {
  padding: 48px 0 80px;
}

.leg-main__grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.leg-sidebar {
  position: sticky;
  top: calc(var(--site-header-height, 80px) + 24px);
}

.leg-toc {
  padding: 20px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 12px;
}

.leg-toc__title {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-muted);
}

.leg-toc__list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: leg-toc;
}

.leg-toc__list li {
  margin-bottom: 6px;
}

.leg-toc__link {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--clr-muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: 10px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.leg-toc__link:hover,
.leg-toc__link:focus {
  color: var(--clr-accent);
  border-left-color: var(--clr-accent);
}

.leg-intro {
  margin: 0 0 32px;
  padding: 20px 22px;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(240, 240, 240, 0.92);
  background: rgba(0, 200, 150, 0.06);
  border: 1px solid rgba(0, 200, 150, 0.18);
  border-radius: 12px;
}

.leg-section {
  margin-bottom: 40px;
  scroll-margin-top: calc(var(--site-header-height, 80px) + 20px);
}

.leg-section__title {
  margin: 0 0 16px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--clr-border);
}

.leg-section__subtitle {
  margin: 20px 0 10px;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(240, 240, 240, 0.95);
}

.leg-section__p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(232, 236, 240, 0.82);
}

.leg-contact-list {
  margin: 8px 0 0;
  padding: 18px 22px;
  list-style: none;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 10px;
}

.leg-contact-list li {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(232, 236, 240, 0.88);
}

.leg-contact-list li:last-child {
  margin-bottom: 0;
}

.leg-contact-list a {
  color: var(--clr-accent);
  text-decoration: none;
}

.leg-contact-list a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .leg-main__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .leg-sidebar {
    position: static;
  }

  .leg-toc__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  .leg-toc__list li {
    margin-bottom: 0;
  }

  .leg-toc__link {
    padding-left: 0;
    border-left: none;
  }
}

@media (max-width: 600px) {
  .leg-container,
  .leg-hero__content {
    width: calc(100% - 32px);
  }

  .leg-main {
    padding: 32px 0 56px;
  }
}
