/* =====================================================================
   LEGAL PAGES (privacy.html + cookies.html), v2. Shared: css/site.css
   Pre-redesign versions: css/privacy-classic.css, css/cookies-classic.css
   ===================================================================== */

.l-updated { margin: 0; font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }
.l-updated time { color: #fff; font-weight: 700; }
.p-hero--plain .p-title { max-width: none; }

.l-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.l-toc { position: sticky; top: 100px; }
.l-toc-title {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--h-text-muted);
}
.l-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--h-line-light); }
.l-toc a {
  display: block;
  padding: 0.5rem 0 0.5rem 1rem;
  margin-left: -2px;
  border-left: 2px solid transparent;
  color: var(--h-text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.4;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.l-toc a:hover { color: var(--h-text); }
.l-toc a.is-active { color: var(--h-text); font-weight: 700; border-left-color: #000; }

.l-body { max-width: 760px; font-size: 1.04rem; line-height: 1.8; color: #333; }
.l-body .policy-section { padding-bottom: 2.5rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--h-line-light); }
.l-body .policy-section:last-of-type { border-bottom: 0; }
.l-body h2 {
  font-family: var(--h-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  line-height: 1;
  color: var(--h-text);
  margin: 0 0 1.25rem;
}
.l-body h3 { font-family: var(--h-display); font-size: 1.4rem; text-transform: uppercase; color: var(--h-text); margin: 1.75rem 0 0.6rem; }
.l-body h4 { margin: 0 0 0.4rem; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--h-text); }
.l-body p { margin: 0 0 1rem; }
.l-body ul { margin: 0 0 1.25rem; padding-left: 0; list-style: none; display: grid; gap: 0.45rem; }
.l-body ul li { position: relative; padding-left: 1.4rem; }
.l-body ul li::before { content: ''; position: absolute; left: 0; top: 0.72em; width: 8px; height: 8px; border-radius: 50%; background: var(--h-accent); box-shadow: 0 0 0 1px rgba(0,0,0,0.25); }
.l-body a { color: var(--h-text); font-weight: 700; text-decoration-color: var(--h-accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.l-body strong { color: var(--h-text); }

.l-body .info-box,
.l-body .important-note {
  margin: 1.5rem 0 0;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border-left: 3px solid var(--h-accent);
  border-radius: 0 10px 10px 0;
}
.l-body .info-box p:last-child,
.l-body .important-note p:last-child { margin-bottom: 0; }

/* cookies page: cookie type cards */
.l-body .cookie-types { display: grid; gap: 1rem; margin: 1.5rem 0; }
.l-body .cookie-type-card { background: #fff; border-radius: var(--h-radius); padding: 1.5rem; box-shadow: 0 18px 40px -30px rgba(0, 0, 0, 0.3); }
.l-body .cookie-type-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.5rem; }
.l-body .cookie-type-header h3 { margin: 0; }
.l-body .cookie-status { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.3rem 0.65rem; border-radius: 999px; background: var(--h-paper-2); }
.l-body .cookie-status.required { background: #000; color: var(--h-accent); }
.l-body .cookie-duration { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--h-line-light); font-size: 0.9rem; color: var(--h-text-muted); }

/* contact block at the end of each policy */
.l-body .contact-section { background: var(--h-ink); color: #fff; border-radius: var(--h-radius); padding: clamp(1.5rem, 3vw, 2.25rem); margin-top: 1rem; }
.l-body .contact-section h3 { color: #fff; margin-top: 0; }
.l-body .contact-section > p { color: var(--h-on-dark-muted); }
.l-body .contact-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.l-body .contact-method { border-top: 1px solid var(--h-line-dark); padding-top: 0.9rem; }
.l-body .contact-method h4 { color: var(--h-on-dark-muted); }
.l-body .contact-method p { margin: 0; color: #fff; font-size: 0.95rem; line-height: 1.6; overflow-wrap: anywhere; }
.l-body .contact-method a { color: #fff; }

@media (max-width: 900px) {
  .l-layout { grid-template-columns: minmax(0, 1fr); }
  .l-toc { position: static; background: #fff; border-radius: var(--h-radius); padding: 1.25rem 1.5rem; }
  .l-body .contact-details { grid-template-columns: 1fr; }
}
