/* ==========================================================
   policy-page.css — Colony Creative
   Editorial legal page — refined, readable, elevated (BEM)
   Used for Privacy Policy and Terms of Service pages.
   ========================================================== */

.policy-page {
  position: relative;
  background: var(--bg);
  min-height: 100vh;
}

/* ── Hero ────────────────────────────────────────────────── */

.policy-page__hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  min-height: 50svh;
  padding: clamp(8rem, 16vh, 14rem) clamp(24px, 5vw, 80px) clamp(4rem, 8vh, 6rem);
  text-align: center;
  overflow: hidden;
}

.policy-page__hero-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.policy-page__hero-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: clamp(1.5rem, 3vh, 2.5rem);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.policy-page__hero-label::before,
.policy-page__hero-label::after {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--border-medium);
}

.policy-page__hero-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin: 0;
  will-change: transform, opacity;
}

.policy-page__hero-line {
  width: 60px;
  height: 1px;
  background: var(--text-primary);
  margin: clamp(1.5rem, 2.5vh, 2rem) 0;
  transform-origin: center;
  opacity: 0.2;
}

.policy-page__hero-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  will-change: transform, opacity;
}

.policy-page__hero-date {
  font-family: 'DM Mono', monospace;
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Content container ───────────────────────────────────── */

.policy-page__content {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 48px) clamp(6rem, 12vh, 10rem);
}

/* ── Introduction ────────────────────────────────────────── */

.policy-page__intro {
  padding-bottom: clamp(3rem, 6vh, 5rem);
  margin-bottom: clamp(3rem, 6vh, 5rem);
  border-bottom: 1px solid var(--border-subtle);
  will-change: transform, opacity;
}

.policy-page__intro p {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(0.9375rem, 1.1vw, 1.0625rem);
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 0 0 1.25rem;
}

.policy-page__intro p:last-child {
  margin-bottom: 0;
}

.policy-page__intro strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ── Summary of Key Points ───────────────────────────────── */

.policy-page__summary-section {
  padding-bottom: clamp(3rem, 6vh, 5rem);
  margin-bottom: clamp(3rem, 6vh, 5rem);
  border-bottom: 1px solid var(--border-subtle);
}

.policy-page__summary-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin: 0 0 1rem;
}

.policy-page__summary-intro {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(0.9375rem, 1.1vw, 1.0625rem);
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 0 0 2.5rem;
}

.policy-page__key-points-title {
  font-family: 'DM Mono', monospace;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.policy-page__key-points-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.policy-page__key-points {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-bottom: clamp(3rem, 6vh, 5rem);
  margin-bottom: clamp(3rem, 6vh, 5rem);
  border-bottom: 1px solid var(--border-subtle);
  will-change: transform, opacity;
}

.policy-page__key-point {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.policy-page__key-point:first-child {
  border-top: 1px solid var(--border-subtle);
}

.policy-page__key-point-q {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(0.875rem, 1vw, 0.9375rem);
  line-height: 1.4;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
}

.policy-page__key-point-a {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(0.8125rem, 0.95vw, 0.875rem);
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

/* ── Table of Contents ───────────────────────────────────── */

.policy-page__toc {
  padding: clamp(2.5rem, 5vh, 4rem);
  margin-bottom: clamp(3rem, 6vh, 5rem);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  will-change: transform, opacity;
}

.policy-page__toc-title {
  font-family: 'DM Mono', monospace;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 2rem;
}

.policy-page__toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: none;
}

.policy-page__toc-link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.625rem 0;
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid var(--border-subtle);
}

.policy-page__toc-list li:last-child .policy-page__toc-link {
  border-bottom: none;
}

.policy-page__toc-num {
  font-family: 'DM Mono', monospace;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  flex-shrink: 0;
  min-width: 1.5rem;
  transition: color 0.3s ease;
}

.policy-page__toc-label {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: clamp(0.8125rem, 1vw, 0.875rem);
  line-height: 1.4;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.policy-page__toc-link:hover .policy-page__toc-num,
.policy-page__toc-link:hover .policy-page__toc-label {
  color: var(--text-primary);
}

/* ── Policy sections ─────────────────────────────────────── */

.policy-page__sections {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.policy-page__section {
  padding: clamp(3rem, 5vh, 4rem) 0;
  border-bottom: 1px solid var(--border-subtle);
  will-change: transform, opacity;
}

.policy-page__section:first-child {
  border-top: 1px solid var(--border-subtle);
}

.policy-page__section-header {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  margin-bottom: clamp(1.5rem, 2.5vh, 2rem);
}

.policy-page__section-num {
  font-family: 'DM Mono', monospace;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  flex-shrink: 0;
  padding-top: 0.375rem;
}

.policy-page__section-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin: 0;
}

.policy-page__section-body {
  padding-left: calc(1.25rem + 1.5rem);
}

.policy-page__section-body p {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(0.875rem, 1vw, 0.9375rem);
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 0 0 1.25rem;
}

.policy-page__section-body p:last-child {
  margin-bottom: 0;
}

.policy-page__section-body strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ── Subheadings within sections ─────────────────────────── */

.policy-page__subheading {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(0.9375rem, 1.1vw, 1rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 2.5rem 0 1rem;
}

.policy-page__subheading:first-child {
  margin-top: 0;
}

/* ── In Short callout ────────────────────────────────────── */

.policy-page__in-short {
  font-style: italic;
  color: var(--text-muted) !important;
  padding-left: 1.25rem;
  border-left: 2px solid var(--border-medium);
  margin-bottom: 1.5rem !important;
}

.policy-page__in-short strong {
  font-style: normal;
  color: var(--text-secondary) !important;
}

/* ── Lists ────────────────────────────────────────────────── */

.policy-page__list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.policy-page__list li {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(0.875rem, 1vw, 0.9375rem);
  line-height: 1.75;
  color: var(--text-secondary);
  padding-left: 1.25rem;
  position: relative;
}

.policy-page__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
}

.policy-page__list li strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ── Links ────────────────────────────────────────────────── */

.policy-page__link {
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--border-medium);
  transition: border-color 0.3s ease;
}

.policy-page__link:hover {
  border-color: var(--text-primary);
}

/* ── Address ──────────────────────────────────────────────── */

.policy-page__address {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(0.875rem, 1vw, 0.9375rem);
  line-height: 1.9;
  color: var(--text-secondary);
  font-style: normal;
  margin-top: 1rem;
  padding: 1.5rem 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}

/* ── Data table ───────────────────────────────────────────── */

.policy-page__table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  -ms-overflow-style: none;
  scrollbar-width: thin;
  scrollbar-color: var(--border-medium) transparent;
}

.policy-page__table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.75rem, 0.9vw, 0.8125rem);
  min-width: 600px;
}

.policy-page__table thead {
  background: var(--bg-surface);
}

.policy-page__table th {
  font-family: 'DM Mono', monospace;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.policy-page__table td {
  padding: 1rem 1.25rem;
  color: var(--text-secondary);
  line-height: 1.6;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

.policy-page__table tbody tr:last-child td {
  border-bottom: none;
}

.policy-page__table tbody tr:hover {
  background: rgba(255, 255, 255, 0.015);
}

.policy-page__table td:first-child {
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  min-width: 180px;
}

.policy-page__table td:last-child {
  text-align: center;
  white-space: nowrap;
  min-width: 80px;
}

/* Status badges */
.policy-page__badge-yes,
.policy-page__badge-no {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: 100px;
}

.policy-page__badge-yes {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.15);
}

.policy-page__badge-no {
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

/* ── Back button ──────────────────────────────────────────── */

.policy-page__back-wrapper {
  display: flex;
  justify-content: center;
  padding-top: clamp(4rem, 8vh, 6rem);
}

.policy-page__back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.875rem 2rem;
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.policy-page__back-button:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
  background: var(--bg-surface);
}

.policy-page__back-arrow {
  font-size: 0.875rem;
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.policy-page__back-button:hover .policy-page__back-arrow {
  transform: translateX(-3px);
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 768px) {
  .policy-page__hero {
    min-height: 40vh;
    min-height: 40svh;
  }

  .policy-page__hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .policy-page__section-body {
    padding-left: 0;
  }

  .policy-page__section-header {
    flex-direction: column;
    gap: 0.5rem;
  }

  .policy-page__toc {
    padding: clamp(1.5rem, 4vw, 2rem);
    border-radius: 12px;
  }

  .policy-page__table td:first-child {
    white-space: normal;
    min-width: 120px;
  }
}

@media (max-width: 600px) {
  .policy-page__hero-title {
    font-size: clamp(1.75rem, 10vw, 2.5rem);
  }

  .policy-page__key-point-q {
    font-size: 0.875rem;
  }

  .policy-page__section-title {
    font-size: clamp(1.125rem, 4vw, 1.375rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .policy-page__hero-title,
  .policy-page__hero-line,
  .policy-page__hero-meta,
  .policy-page__intro,
  .policy-page__key-points,
  .policy-page__toc,
  .policy-page__section {
    opacity: 1 !important;
    transform: none !important;
  }
}
