/* ============================================================
   LEGAL SCREEN — Privacy & Cookies / Terms of Use
   Paper register (Expression C). All styles scoped to
   `.screen--legal` so they cannot leak into other surfaces.
   ============================================================ */

.screen--legal {
  background: var(--paper);
  color: var(--ink);
  flex-direction: column;
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
}

.screen--legal a {
  color: var(--sec-finance);
  text-decoration: none;
  border-bottom: 1px solid rgba(46, 81, 181, 0.3);
}

.screen--legal a:hover { border-bottom-color: var(--sec-finance); }

/* ---- TAB NAV ---- */
.screen--legal .legal-tabs {
  display: flex;
  border-bottom: 1px solid var(--paper-line);
  padding: 0 48px;
  background: var(--paper);
  position: sticky;
  top: var(--nav-h);
  z-index: 9;
  overflow-x: auto;
  white-space: nowrap;
}

.screen--legal .legal-tab {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  padding: 16px 0;
  margin-right: 32px;
  color: rgba(14, 14, 16, 0.4);
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.screen--legal .legal-tab.is-active {
  color: var(--ink);
  border-bottom-color: var(--sec-finance);
}

.screen--legal .legal-tab:hover:not(.is-active) {
  color: rgba(14, 14, 16, 0.65);
}

/* ---- PANELS ---- */
.screen--legal .legal-panel { display: none; }
.screen--legal .legal-panel.is-active { display: block; }

/* ---- DOCUMENT ---- */
.screen--legal .doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 48px 96px;
}

.screen--legal .doc-eyebrow {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--sec-finance);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.screen--legal .doc-eyebrow::before {
  content: '';
  width: 16px;
  height: 1px;
  background: var(--sec-finance);
}

.screen--legal .doc-title {
  font-family: var(--serif);
  font-weight: var(--fw-regular);
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-headline);
  margin-bottom: 16px;
  color: var(--ink);
}

.screen--legal .doc-title em {
  font-style: italic;
  color: var(--sec-finance);
}

.screen--legal .doc-meta {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  color: rgba(14, 14, 16, 0.4);
  padding-bottom: 40px;
  border-bottom: 1px solid var(--paper-line);
  margin-bottom: 48px;
}

.screen--legal .doc-intro {
  font-family: var(--serif);
  font-size: var(--fs-h3);
  line-height: var(--lh-article);
  color: rgba(14, 14, 16, 0.65);
  margin-bottom: 48px;
  max-width: 54ch;
}

/* ---- SECTIONS ---- */
.screen--legal .doc-section {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--paper-line);
}

.screen--legal .doc-section:last-of-type { border-bottom: none; }

.screen--legal .section-label {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--sec-finance);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.screen--legal .section-label::before {
  content: '';
  width: 12px;
  height: 1px;
  background: var(--sec-finance);
}

.screen--legal .doc-section h2 {
  font-family: var(--serif);
  font-weight: var(--fw-regular);
  font-size: var(--fs-h1);
  letter-spacing: var(--ls-body);
  line-height: var(--lh-snug);
  margin-bottom: 20px;
  color: var(--ink);
}

.screen--legal .doc-section p {
  font-family: var(--serif);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: rgba(14, 14, 16, 0.65);
  margin-bottom: 16px;
  max-width: 62ch;
}

.screen--legal .doc-section p:last-child { margin-bottom: 0; }
.screen--legal .doc-section p strong { color: var(--ink); font-weight: var(--fw-medium); }

/* ---- DATA TABLE ---- */
.screen--legal .data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.screen--legal .data-table th {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  color: rgba(14, 14, 16, 0.4);
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--paper-line);
  background: var(--bone);
  font-weight: var(--fw-regular);
}

.screen--legal .data-table td {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  padding: 12px 14px;
  border-bottom: 1px solid var(--paper-line);
  vertical-align: top;
  line-height: var(--lh-base);
  color: rgba(14, 14, 16, 0.65);
}

.screen--legal .data-table td:first-child {
  color: var(--ink);
  font-weight: var(--fw-medium);
}

.screen--legal .data-table tr:last-child td { border-bottom: none; }

/* ---- CALLOUT ---- */
.screen--legal .callout {
  background: var(--bone);
  border-left: 3px solid var(--sec-finance);
  padding: 20px 24px;
  margin: 24px 0;
}

.screen--legal .callout p {
  font-family: var(--serif);
  font-size: var(--fs-body);
  color: rgba(14, 14, 16, 0.65);
  margin-bottom: 0;
  max-width: none;
}

.screen--legal .callout strong { color: var(--ink); }

/* ---- DOC LIST ---- */
.screen--legal .doc-list {
  list-style: none;
  margin: 16px 0 20px;
  padding: 0;
}

.screen--legal .doc-list li {
  font-family: var(--serif);
  font-size: var(--fs-body);
  line-height: var(--lh-article);
  color: rgba(14, 14, 16, 0.65);
  padding: 8px 0 8px 20px;
  border-bottom: 1px solid var(--paper-line);
  position: relative;
}

.screen--legal .doc-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--sec-finance);
}

.screen--legal .doc-list li:last-child { border-bottom: none; }

/* ---- CONTACT BLOCK ---- */
.screen--legal .contact-block {
  background: var(--ink);
  color: var(--paper);
  padding: 32px 36px;
  margin-top: 48px;
  flex: initial;
  width: auto;
  text-align: left;
  display: block;
}

.screen--legal .contact-block .cb-label {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.45);
  margin-bottom: 12px;
}

.screen--legal .contact-block p {
  font-family: var(--serif);
  font-size: var(--fs-body);
  line-height: var(--lh-article);
  color: rgba(244, 241, 234, 0.7);
  max-width: none;
  margin-bottom: 12px;
}

.screen--legal .contact-block p:last-child { margin-bottom: 0; }

.screen--legal .contact-block a {
  color: var(--be-yellow);
  border-bottom-color: rgba(255, 194, 23, 0.3);
}

.screen--legal .contact-block a:hover { border-bottom-color: var(--be-yellow); }

/* ---- IN-DOCUMENT LEGAL FOOTER ---- */
.screen--legal .legal-footer {
  border-top: 1px solid var(--paper-line);
  padding: 32px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--paper);
}

.screen--legal .legal-footer__copy {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  color: rgba(14, 14, 16, 0.4);
}

.screen--legal .legal-footer__nav {
  display: flex;
  gap: 24px;
}

.screen--legal .legal-footer__nav a {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  color: rgba(14, 14, 16, 0.4);
  text-decoration: none;
  border: none;
  transition: color 0.15s;
}

.screen--legal .legal-footer__nav a:hover,
.screen--legal .legal-footer__nav a.is-current {
  color: var(--ink);
}

@media (max-width: 700px) {
  .screen--legal .legal-tabs,
  .screen--legal .doc { padding-left: 20px; padding-right: 20px; }
  .screen--legal .legal-footer { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
}

/* The paper-register topbar variant (`body.theme-paper .nav*`) lives in
   main.css alongside the global footer-bar paper rules so the cascade is
   defined in one place for every paper-register route (/privacy, /terms,
   /brief/:ref). Do not redeclare here. */
