/* =====================================================================
 * Styles for the standalone legal pages (/privacy-policy/, /personal-data/).
 *
 * These pages live in `public/` and are copied into `dist/` verbatim, so
 * they are outside the Vite/Vue build and cannot import the brand package.
 * Color and typography values below are copied from
 * `packages/brand/src/tokens.css` — that file stays the source of truth;
 * update it there first, then mirror the change here.
 *
 * A twin of this file lives in `apps/b2c/public/legal.css`.
 * ===================================================================== */
:root {
  --green:      #3ddc6b;
  --green-dim:  rgba(61, 220, 107, 0.12);

  --bg:         #1a2230;
  --bg-dark:    #141c28;
  --bg-card:    #1f2d3d;

  --border:       rgba(61, 220, 107, 0.15);
  --border-white: rgba(255, 255, 255, 0.07);

  --text:    #e8f0e9;
  --subtext: #7a9080;
  --white:   #ffffff;

  --font-display: 'Unbounded', sans-serif;
  --font-body:    'Golos Text', sans-serif;

  --radius: 2px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-dark);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

a:hover {
  border-bottom-color: var(--green);
}

/* ===================== HEADER / FOOTER ===================== */
.legal-nav,
.legal-footer {
  background: var(--bg-dark);
  padding: 20px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.legal-nav {
  border-bottom: 1px solid var(--border-white);
  position: sticky;
  top: 0;
  z-index: 10;
}

.legal-footer {
  border-top: 1px solid var(--border-white);
  padding: 32px 5%;
  font-size: 12px;
  color: var(--subtext);
}

.legal-nav__logo,
.legal-footer__logo {
  display: block;
  border-bottom: none;
}

.legal-nav__logo img,
.legal-footer__logo img {
  display: block;
  height: 32px;
  width: auto;
}

.legal-nav__back {
  font-size: 14px;
  font-weight: 600;
}

.legal-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 12px;
}

/* ===================== PAGE BODY ===================== */
/* Matches the landing's geometry: `section` pads 5% and `.container` caps at
 * 1200px, so 1320px minus this 5% padding lands on the same content column. */
.legal {
  max-width: 1320px;
  margin: 0 auto;
  padding: 80px 5% 100px;
}

.legal__tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}

.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 16px;
}

.legal__meta {
  font-size: 13px;
  color: var(--subtext);
  margin-bottom: 48px;
}

.legal h2 {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 48px 0 18px;
}

.legal h3 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin: 28px 0 10px;
}

.legal p {
  margin-bottom: 14px;
  color: var(--text);
}

.legal ul,
.legal ol {
  margin: 0 0 14px 22px;
}

.legal li {
  margin-bottom: 8px;
}

.legal strong {
  color: var(--white);
  font-weight: 600;
}

/* Numbered clause — "1.1." style prefix rendered as plain text. */
.legal__clause {
  margin-bottom: 14px;
}

.legal__num {
  color: var(--subtext);
  font-variant-numeric: tabular-nums;
  margin-right: 6px;
}

/* ===================== OPERATOR CARD ===================== */
.legal__card {
  background: var(--bg-card);
  border: 1px solid var(--border-white);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 24px 0 32px;
}

.legal__card dl {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 8px 20px;
  font-size: 15px;
}

.legal__card dt {
  color: var(--subtext);
}

.legal__card dd {
  color: var(--white);
}

/* ===================== KEYBOARD FOCUS ===================== */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 1000;
  background: var(--green);
  color: #0a1a0a;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: var(--radius);
  border-bottom: none;
  transition: top 0.2s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 700px) {
  .legal { padding: 40px 6% 72px; }
  .legal__card { padding: 20px; }
  .legal__card dl { grid-template-columns: 1fr; gap: 2px; }
  .legal__card dd { margin-bottom: 10px; }
  .legal-nav, .legal-footer { justify-content: center; text-align: center; }
}
