/* ECHO Integration: legal pages (Privacy policy, Cookie policy). Loads after styles.css, home-b.css and pages.css. */
.legal { position: relative; }
.legal__grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: 32px clamp(40px, 7vw, 112px); align-items: start; }
.legal__toc { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 14px; }
.legal__toc .mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-on-dark-muted); }
.legal__toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-left: 1px solid var(--line-dark-strong); }
.legal__toc a { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; min-height: 44px; padding: 4px 0 4px 16px; margin-left: -1px; border-left: 1px solid transparent; font-size: 15px; line-height: 1.35; color: var(--text-on-dark-muted); text-decoration: none; transition: color .2s, border-color .2s; }
.legal__toc a span { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; color: var(--blue-bright); }
.legal__toc a:hover { color: #fff; border-left-color: var(--blue); }
.legal__body { max-width: 760px; }
.legal__intro { margin: 0 0 48px; font-size: 18px; font-weight: 300; line-height: 1.75; color: #fff; text-wrap: pretty; }
.legal__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }
.legal-section { margin: 0 0 48px; scroll-margin-top: 110px; }
.legal-section:last-child { margin-bottom: 0; }
.legal-section__head { display: flex; align-items: baseline; gap: 16px; margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line-dark); }
.legal-section__num { flex: none; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; color: var(--blue-bright); }
.legal-section__title { margin: 0; font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 28px); font-weight: 500; letter-spacing: .04em; line-height: 1.15; text-transform: uppercase; color: #fff; }
.legal-section h3 { margin: 24px 0 10px; font-family: var(--font-display); font-size: 18px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.legal-section p, .legal-section li { font-size: 16px; font-weight: 300; line-height: 1.75; color: #fff; text-wrap: pretty; }
.legal-section p { margin: 0 0 14px; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section strong { font-weight: 500; }
.legal-section a { color: var(--blue-bright); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal-section a:hover { color: #fff; }
.legal-section ul { list-style: none; margin: 4px 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.legal-section ul li { position: relative; padding-left: 22px; }
.legal-section ul li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 6px; height: 6px; background: var(--blue); box-shadow: 0 0 8px var(--blue); }
.legal-table { width: 100%; margin: 8px 0 16px; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line-dark); border-radius: var(--radius-md); overflow: hidden; font-size: 15px; }
.legal-table th, .legal-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-dark); font-weight: 300; line-height: 1.55; color: #fff; }
.legal-table tr:last-child td { border-bottom: 0; }
.legal-table th { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--text-on-dark-muted); background: var(--char); }
.legal-table td:first-child { font-family: var(--font-mono); font-size: 13px; white-space: nowrap; color: var(--blue-bright); }
.legal-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 18px; }
@media (max-width: 900px) {
  .legal__grid { grid-template-columns: minmax(0, 1fr); }
  .legal__toc { position: static; }
}
@media (max-width: 640px) {
  .legal-table thead { display: none; }
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; width: 100%; }
  .legal-table tr { border-bottom: 1px solid var(--line-dark); padding: 6px 0; }
  .legal-table tr:last-child { border-bottom: 0; }
  .legal-table td { border: 0; padding: 4px 14px; white-space: normal; }
  .legal-table td::before { content: attr(data-label); display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-on-dark-muted); }
}
