/* ═══════════════════════════════════════════════════
   Legal Pages — Privacy Policy & Cookie Policy
   Shared styles for policy/legal pages
   ═══════════════════════════════════════════════════ */

.legal-nav {
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.legal-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.legal-nav__back {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--c-green);
  transition: color var(--dur) var(--ease);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.legal-nav__back:hover {
  color: var(--c-green-dark);
}

.legal-nav__name {
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: var(--c-text-muted);
  display: none;
}

@media (min-width: 768px) {
  .legal-nav__name {
    display: block;
  }
}

/* ─── Legal Content ─── */
.legal {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--c-white);
  min-height: 70vh;
}

.legal__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
  color: var(--c-charcoal);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.legal__updated {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--c-border);
}

.legal__section {
  margin-bottom: 2.5rem;
}

.legal__section:last-child {
  margin-bottom: 0;
}

.legal__section h2 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--c-charcoal);
  margin-bottom: 1rem;
  line-height: 1.35;
}

.legal__section h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-charcoal);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal__section p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--c-text);
  margin-bottom: 0.85rem;
}

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

.legal__section ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
}

.legal__section ul li {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--c-text);
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.legal__section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-green);
  opacity: 0.5;
}

.legal__section ul ul {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.legal__section ul ul li {
  padding-left: 1rem;
}

.legal__section ul ul li::before {
  width: 4px;
  height: 4px;
  background: var(--c-text-muted);
}

.legal__section a {
  color: var(--c-green);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

.legal__section a:hover {
  color: var(--c-green-dark);
}

/* ─── Tables ─── */
.legal__table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
}

.legal__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  line-height: 1.5;
}

.legal__table th {
  background: var(--c-cream);
  font-weight: 600;
  color: var(--c-charcoal);
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--c-border);
  white-space: nowrap;
}

.legal__table td {
  padding: 0.75rem 1rem;
  color: var(--c-text);
  border-bottom: 1px solid var(--c-border-light);
  vertical-align: top;
}

.legal__table tr:last-child td {
  border-bottom: none;
}

.legal__table code {
  font-family: 'SF Mono', 'Fira Code', 'Fira Mono', monospace;
  font-size: 0.82rem;
  background: var(--c-cream);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  color: var(--c-charcoal);
}

.legal__table a {
  color: var(--c-green);
  text-decoration: underline;
}

/* ─── Mobile ─── */
@media (max-width: 767px) {
  .legal__table {
    font-size: 0.82rem;
  }

  .legal__table th,
  .legal__table td {
    padding: 0.6rem 0.75rem;
  }
}
