/* ═══════════════════════════════════════════
   POLICY PAGE — Terms, Privacy, etc.
   Clean, readable layout for text-heavy pages.
   ═══════════════════════════════════════════ */

/* ───── Header ───── */
.policy__header {
  background: var(--dark);
  margin-top: calc(-1 * (var(--nav-h) + 40px)); /* pull up behind nav + top-bar */
  padding: calc(var(--nav-h) + 40px + clamp(3rem, 6vw, 5rem)) 2.4rem clamp(3rem, 5vw, 4.5rem);
}

.policy__header-inner {
  max-width: var(--container);
  margin: 0 auto;
}

.policy__breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1.6rem;
}

.policy__breadcrumb a {
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.2s;
}

.policy__breadcrumb a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.policy__breadcrumb-sep {
  opacity: 0.3;
}

.policy__title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.policy__meta {
  margin-top: 0.8rem;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.35);
}


/* ───── Body Layout ───── */
.policy__body {
  background: var(--white);
  padding: clamp(3rem, 6vw, 5rem) 2.4rem clamp(4rem, 8vw, 7rem);
}

.policy__body-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 4rem;
  align-items: start;
}


/* ───── Table of Contents ───── */
.policy__toc {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
  padding-top: 0.2rem;
}

.policy__toc-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.policy__toc-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  border-left: 2px solid var(--border);
  padding-left: 1rem;
}

.policy__toc-link {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  padding: 0.3rem 0;
  transition: color 0.2s;
  line-height: 1.4;
}

.policy__toc-link:hover {
  color: var(--text);
}

.policy__toc-link.is-active {
  color: var(--blue);
  font-weight: 500;
}


/* ───── Content Prose ───── */
.policy__content {
  max-width: 740px;
}

/* Headings */
.policy__content h2 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  margin: 2.8rem 0 0.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  line-height: 1.25;
}

.policy__content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.policy__content h3 {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  font-weight: 600;
  color: var(--text);
  margin: 2rem 0 0.5rem;
  line-height: 1.3;
}

/* Paragraphs */
.policy__content p {
  font-size: var(--fs-base);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

/* Links */
.policy__content a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: rgba(0, 123, 193, 0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s;
}

.policy__content a:hover {
  text-decoration-color: var(--blue);
}

/* Lists */
.policy__content ul,
.policy__content ol {
  margin: 0 0 1.4rem 0;
  padding-left: 1.4rem;
}

.policy__content li {
  font-size: var(--fs-base);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 0.35rem;
}

.policy__content ul li::marker {
  color: var(--blue);
}

.policy__content ol li::marker {
  color: var(--text-muted);
  font-weight: 500;
}

/* Strong / emphasis */
.policy__content strong {
  color: var(--text);
  font-weight: 600;
}


/* ───── Responsive ───── */
@media (max-width: 880px) {
  .policy__body-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .policy__toc {
    position: relative;
    top: auto;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
    margin-bottom: 2.5rem;
  }

  .policy__toc-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.3rem 0.8rem;
    border-left: none;
    padding-left: 0;
  }

  .policy__toc-link {
    font-size: var(--fs-xs);
    padding: 0.25rem 0.6rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
  }

  .policy__toc-link.is-active {
    background: var(--blue-pale);
  }
}

@media (max-width: 640px) {
  .policy__header {
    padding: clamp(5rem, 8vw, 6rem) 1.4rem clamp(2rem, 4vw, 3rem);
  }

  .policy__body {
    padding: 2rem 1.4rem 3rem;
  }
}
