/* EmailVerifyerAPI — Legal pages shared stylesheet.
   All legal pages import colors_and_type.css THEN this file. */
@import url("./colors_and_type.css");
@import url("./accessibility.css");

@font-face {
  font-family: "XE Sans";
  src: url("fonts/e4af272ccee01ff0-s.p.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; -webkit-font-smoothing: antialiased; background: #fff; color: var(--text-primary); }

/* Plain-language summary (draft WCAG 3.0 — clear language / supplementary content) */
.lgl-plain {
  margin: 24px 0 0;
  padding: 20px 22px;
  background: var(--xe-blue-soft, #EEF2FF);
  border: 1px solid color-mix(in srgb, var(--xe-blue, #0A146E) 22%, transparent);
  border-radius: 14px;
}
.lgl-plain__label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--xe-blue, #0A146E); margin: 0 0 8px;
}
.lgl-plain__label::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--xe-blue, #0A146E); }
.lgl-plain p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text-primary); }
.lgl-plain p + p { margin-top: 10px; }
.lgl-plain strong { font-weight: 700; }

:root {
  --hero-bg: #060D2E;
  --section-alt: #F5F7FA;
  --border-strong: #D1D7E3;
  --lgl-max: 1140px;
  --lgl-pad: 24px;
}

.skip-link { position: absolute; top: -48px; left: 0; background: #163BFF; color: #fff; padding: 12px 20px; z-index: 9999; font-weight: 600; font-size: 15px; text-decoration: none; border-radius: 0 0 6px 0; }
.skip-link:focus { top: 0; }

/* ── Header ─────────────────────────────────────────────── */
.lgl-header { background: #fff; border-bottom: 1px solid var(--border-default); height: 64px; display: flex; align-items: center; position: sticky; top: 0; z-index: 100; }
.lgl-header__inner { max-width: var(--lgl-max); margin: 0 auto; padding: 0 var(--lgl-pad); width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.lgl-logo { display: inline-flex; align-items: center; gap: 9px; font-size: 20px; font-weight: 800; letter-spacing: -0.04em; color: var(--hero-bg); text-decoration: none; }
.lgl-logo__mark { width: 30px; height: 30px; border-radius: 6px; background: #163BFF; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; }
.lgl-back { font-size: 14px; font-weight: 600; color: var(--text-secondary); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 6px; transition: background 140ms ease, color 140ms ease; border: 1px solid var(--border-default); }
.lgl-back:hover { background: var(--section-alt); color: var(--text-primary); }

/* ── Hero band ───────────────────────────────────────────── */
.lgl-hero { background: var(--hero-bg); padding: 56px 0 48px; position: relative; overflow: hidden; }
.lgl-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px); background-size: 28px 28px; pointer-events: none; }
.lgl-hero__inner { position: relative; max-width: var(--lgl-max); margin: 0 auto; padding: 0 var(--lgl-pad); }
.lgl-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 18px; }
.lgl-breadcrumb a { color: rgba(255,255,255,0.85); text-decoration: none; }
.lgl-breadcrumb a:hover { color: #fff; }
.lgl-breadcrumb span[aria-hidden] { color: rgba(255,255,255,0.25); }
.lgl-hero h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 700; letter-spacing: -0.03em; color: #fff; margin: 0 0 14px; line-height: 1.1; }
.lgl-meta { display: flex; gap: 10px; align-items: center; font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 14px; flex-wrap: wrap; }
.lgl-meta span { }
.lgl-subtitle { font-size: 16px; color: rgba(255,255,255,0.6); margin: 0; max-width: 60ch; line-height: 1.6; }

/* Related pages strip inside hero */
.lgl-related { margin-top: 28px; display: flex; gap: 8px; flex-wrap: wrap; }
.lgl-related a { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.72); text-decoration: none; padding: 5px 12px; border: 1px solid rgba(255,255,255,0.3); border-radius: 4px; transition: all 140ms ease; }
.lgl-related a:hover { color: #fff; border-color: rgba(255,255,255,0.4); }
.lgl-related a.is-current { color: #fff; border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.08); }

/* ── Body layout ─────────────────────────────────────────── */
.lgl-body { max-width: var(--lgl-max); margin: 0 auto; padding: 56px var(--lgl-pad) 80px; display: grid; grid-template-columns: 220px 1fr; gap: 64px; align-items: start; }

/* TOC sidebar */
.lgl-toc { position: sticky; top: 80px; }
.lgl-toc__title { font-size: 11px; font-weight: 700; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 14px; }
.lgl-toc__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.lgl-toc__list li a { font-size: 13px; color: var(--text-secondary); text-decoration: none; display: block; padding: 5px 10px; border-radius: 4px; border-left: 2px solid transparent; transition: all 140ms ease; line-height: 1.4; }
.lgl-toc__list li a:hover { color: var(--text-primary); background: var(--section-alt); border-left-color: var(--border-strong); }
.lgl-toc__list li a.is-active { color: #163BFF; background: #EEF2FF; border-left-color: #163BFF; font-weight: 600; }

/* ── Article typography ──────────────────────────────────── */
.lgl-article { min-width: 0; }
.lgl-article section { margin-bottom: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--border-default); }
.lgl-article section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.lgl-article h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 16px; color: var(--text-primary); padding-top: 4px; }
.lgl-article h3 { font-size: 17px; font-weight: 700; margin: 24px 0 10px; color: var(--text-primary); }
.lgl-article p { font-size: 15px; line-height: 1.75; color: var(--text-secondary); margin: 0 0 14px; }
.lgl-article p:last-child { margin-bottom: 0; }
.lgl-article ul, .lgl-article ol { font-size: 15px; line-height: 1.75; color: var(--text-secondary); margin: 0 0 14px; padding-left: 22px; }
.lgl-article li { margin-bottom: 6px; }
.lgl-article strong { color: var(--text-primary); font-weight: 600; }
.lgl-article a { color: #163BFF; text-decoration: none; font-weight: 500; }
.lgl-article a:hover { text-decoration: underline; }
.lgl-article .placeholder { display: block; background: #fffbe6; border: 1px dashed #f0c040; border-radius: 6px; padding: 14px 18px; font-size: 14px; color: #7a5c00; font-style: italic; margin: 0 0 14px; }
/* Honest inline note — used for truthful "early-stage / before-launch" caveats. Subtle, not alarming. */
.lgl-article .lgl-note { display: block; border-left: 3px solid var(--border-strong); padding: 4px 0 4px 14px; font-size: 14px; color: var(--text-tertiary); font-style: italic; margin: 0 0 14px; }

/* Contact card */
.lgl-contact { background: var(--section-alt); border: 1px solid var(--border-default); border-radius: 10px; padding: 24px 28px; margin-top: 16px; }
.lgl-contact h3 { font-size: 16px; font-weight: 700; margin: 0 0 8px; }
.lgl-contact p { font-size: 14px; color: var(--text-secondary); margin: 0 0 16px; }
.lgl-contact__row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-lgl { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 18px; border-radius: 6px; font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer; text-decoration: none; border: none; transition: background 140ms ease; }
.btn-lgl--primary { background: #163BFF; color: #fff; }
.btn-lgl--primary:hover { background: #1430d6; }
.btn-lgl--secondary { background: #fff; color: var(--text-primary); border: 1px solid var(--border-strong); }
.btn-lgl--secondary:hover { background: var(--section-alt); }

/* ── Footer ─────────────────────────────────────────────── */
.lgl-footer { background: #060D2E; }
.lgl-footer__inner { max-width: var(--lgl-max); margin: 0 auto; padding: 36px var(--lgl-pad); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.lgl-footer__logo { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; letter-spacing: -0.04em; color: #fff; text-decoration: none; }
.lgl-footer__logo-mark { width: 26px; height: 26px; border-radius: 5px; background: #163BFF; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }
.lgl-footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.lgl-footer__links a { font-size: 13px; color: rgba(255,255,255,0.72); text-decoration: none; transition: color 140ms ease; }
.lgl-footer__links a:hover { color: #fff; }
.lgl-footer__links a.is-current { color: #fff; }
.lgl-footer__copy { font-size: 12px; color: rgba(255,255,255,0.6); width: 100%; text-align: right; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 800px) {
  .lgl-body { grid-template-columns: 1fr; gap: 32px; padding: 36px var(--lgl-pad) 56px; }
  .lgl-toc { position: static; }
  .lgl-toc__list { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .lgl-toc__list li a { padding: 4px 10px; border-left: none; border-radius: 999px; }
  .lgl-footer__inner { flex-direction: column; align-items: flex-start; }
  .lgl-footer__copy { text-align: left; }
}
@media (max-width: 560px) {
  .lgl-back span { display: none; }
}

/* ── Cookie policy page (cookies.html) ─────────────────────── */
.lgl-cookie-summary { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; }
.lgl-cookie-stat { flex: 1 1 140px; background: var(--section-alt); border: 1px solid var(--border-default); border-radius: 10px; padding: 14px 16px; }
.lgl-cookie-stat__n { font-size: 22px; font-weight: 800; color: var(--text-primary); margin: 0; }
.lgl-cookie-stat__l { font-size: 12px; color: var(--text-tertiary); margin: 2px 0 0; }

.lgl-cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 28px; }
.btn-lgl--accept { background: #0C7A41; color: #fff; }
.btn-lgl--accept:hover { background: #0a6636; }
.btn-lgl--gray { background: #475569; color: #fff; }
.btn-lgl--gray:hover { background: #334155; }
.lgl-cookie-status { display: none; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--success-text); margin: 0 0 20px; }
.lgl-cookie-status.is-shown { display: flex; }
.lgl-cookie-status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); flex-shrink: 0; }

.lgl-cookie-cat { border: 1px solid var(--border-default); border-radius: 10px; margin-bottom: 14px; overflow: hidden; background: #fff; }
.lgl-cookie-cat__head { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; cursor: pointer; background: none; border: none; width: 100%; text-align: left; font: inherit; }
.lgl-cookie-cat__body { flex: 1; min-width: 0; }
.lgl-cookie-cat__title { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.lgl-cookie-cat__badge { display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 600; color: var(--text-tertiary); background: var(--section-alt); padding: 2px 8px; border-radius: 20px; vertical-align: middle; }
.lgl-cookie-cat__desc { font-size: 13px; color: var(--text-secondary); margin: 4px 0 0; line-height: 1.5; }
.lgl-cookie-cat__always { font-size: 12.5px; font-weight: 700; color: var(--success-text); white-space: nowrap; flex-shrink: 0; padding-top: 2px; }
.lgl-cookie-cat__chev { color: var(--xe-blue); flex-shrink: 0; transition: transform 180ms ease; margin-top: 2px; }
.lgl-cookie-cat.is-open .lgl-cookie-cat__chev { transform: rotate(90deg); }
.lgl-cookie-cat__panel { display: none; border-top: 1px solid var(--border-default); background: var(--section-alt); }
.lgl-cookie-cat.is-open .lgl-cookie-cat__panel { display: block; }

.lgl-toggle { appearance: none; -webkit-appearance: none; -moz-appearance: none; width: 44px; height: 24px; border-radius: 12px; position: relative; flex-shrink: 0; border: none; cursor: pointer; padding: 0; background: var(--border-strong); transition: background 180ms ease; }
.lgl-toggle[aria-checked="true"] { background: #163BFF; }
.lgl-toggle__thumb { position: absolute; width: 18px; height: 18px; background: #fff; border-radius: 50%; top: 3px; left: 3px; transition: left 180ms ease; box-shadow: 0 1px 3px rgba(0,0,0,0.25); }
.lgl-toggle[aria-checked="true"] .lgl-toggle__thumb { left: 23px; }

.lgl-cookie-table-wrap { overflow-x: auto; }
.lgl-cookie-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 640px; }
.lgl-cookie-table th { text-align: left; padding: 8px 18px; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-tertiary); }
.lgl-cookie-table td { padding: 10px 18px; border-top: 1px solid var(--border-default); color: var(--text-secondary); vertical-align: top; }
.lgl-cookie-table td.lgl-cookie-name { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text-primary); font-weight: 600; white-space: nowrap; }
.lgl-cookie-empty { padding: 14px 18px; font-size: 13px; color: var(--text-tertiary); margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .lgl-toggle, .lgl-toggle__thumb, .lgl-cookie-cat__chev { transition-duration: 0.01ms !important; }
}
