/* =============================================================================
   STRATO TECHNOLOGIES — Legal pages
   Loaded only by legal-notice.html / privacy.html / cookies.html, on top of the
   main stylesheet.

   Every rule is built from the theme tokens defined in the main stylesheet §1, so this
   sheet needs no counterpart in the light-theme block — the same architecture
   the success-stories sheet already follows.
   ============================================================================= */

.legal {
  padding: var(--section-y) 0;
  background-color: var(--color-bg);
}

.legal__inner {
  max-width: 760px;
  margin: 0 auto;
}

.legal__eyebrow {
  display: block;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.legal__heading {
  font-size: var(--text-h1);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--tracking-h1);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.legal__updated {
  font-size: var(--font-size-sm);
  color: var(--color-text-dim);
  padding-bottom: var(--space-8);
  margin-bottom: var(--space-10);
  border-bottom: 1px solid var(--color-border);
}

.legal__notice strong {
  color: var(--color-text);
  font-weight: var(--font-weight-semibold);
}

.legal__section {
  margin-bottom: var(--space-10);
}

.legal__section-heading {
  font-size: var(--text-h3);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-h3);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.legal__section p {
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-4);
}

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

.legal__section a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.legal__list li {
  position: relative;
  padding-left: var(--space-5);
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
}

.legal__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
}

/* Key/value block for the company identification panel */
.legal__facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-bottom: var(--space-4);
}

.legal__fact {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4) var(--space-5);
  background: var(--color-bg-surface);
}

.legal__fact-label {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  color: var(--color-text-dim);
}

.legal__fact-value {
  font-size: var(--font-size-sm);
  color: var(--color-text);
}

/* Cookie inventory */
/* min-width: 0 so the 480px table scrolls here rather than widening an
   ancestor — see the same note on .lookup in the success-stories sheet. */
.legal__table-wrap {
  min-width: 0;
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
}

.legal__table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

.legal__table th,
.legal__table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.legal__table th {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  background: var(--color-bg-subtle);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
}

.legal__table td {
  color: var(--color-text-muted);
}

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

.legal__table code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  color: var(--color-text);
}

@media (min-width: 600px) {
  .legal__facts {
    grid-template-columns: 1fr 1fr;
  }
}
