/* Shared privacy, terms and APK installation pages. */
:root {
  --legal-ink: #25191d;
  --legal-muted: #715e63;
  --legal-paper: #fffdfb;
  --legal-ground: #f6f0ed;
  --legal-line: #ecdcd5;
  --legal-red: #c93846;
  --legal-red-deep: #971f31;
  --legal-soft: #fff0ea;
}

* { box-sizing: border-box; }

body.legal-page {
  min-width: 0;
  margin: 0;
  background: radial-gradient(circle at 8% 0%, #ffe6d8 0, transparent 28%), var(--legal-ground);
  color: var(--legal-ink);
  font-family: Nunito, Arial, sans-serif;
  line-height: 1.6;
}

.legal-topbar {
  position: sticky;
  z-index: 5;
  top: 0;
  border-bottom: 1px solid rgba(236, 220, 213, .86);
  background: rgba(255, 253, 251, .94);
  backdrop-filter: blur(12px);
}

.legal-topbar__inner,
.legal-main,
.legal-footer__inner {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
}

.legal-topbar__inner {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.legal-brand img {
  display: block;
  width: 142px;
  height: auto;
}

.legal-back {
  color: var(--legal-red-deep);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.legal-back:hover,
.legal-back:focus-visible { text-decoration: underline; }

.legal-main { padding: 44px 0 64px; }

.legal-breadcrumb {
  margin: 0 0 15px;
  color: #997a76;
  font-size: 13px;
  font-weight: 700;
}

.legal-breadcrumb a { color: inherit; }

.legal-hero {
  padding: 4px 0 27px;
}

.legal-eyebrow {
  margin: 0 0 9px;
  color: var(--legal-red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.legal-hero h1 {
  margin: 0;
  font-family: Gilda Display, Georgia, serif;
  font-size: clamp(38px, 7vw, 58px);
  font-weight: 400;
  letter-spacing: -.03em;
  line-height: 1.04;
}

.legal-hero p {
  max-width: 720px;
  margin: 15px 0 0;
  color: var(--legal-muted);
  font-size: 17px;
}

.legal-updated {
  display: inline-flex;
  margin-top: 17px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eee3df;
  color: #6b585b;
  font-size: 12px;
  font-weight: 800;
}

.legal-card {
  margin: 15px 0;
  padding: 29px 32px;
  border: 1px solid var(--legal-line);
  border-radius: 18px;
  background: var(--legal-paper);
  box-shadow: 0 7px 20px rgba(90, 51, 51, .045);
}

.legal-card h2 {
  margin: 0 0 10px;
  color: #342025;
  font-size: 23px;
  line-height: 1.25;
}

.legal-card h3 {
  margin: 20px 0 7px;
  color: #472a31;
  font-size: 16px;
}

.legal-card p,
.legal-card li { color: #5d4a4f; }

.legal-card p { margin: 9px 0; }
.legal-card ul,
.legal-card ol { margin: 10px 0; padding-left: 23px; }
.legal-card li + li { margin-top: 7px; }
.legal-card a { color: var(--legal-red-deep); font-weight: 800; }

.legal-callout {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-left: 4px solid var(--legal-red);
  border-radius: 8px;
  background: var(--legal-soft);
  color: #663a3d;
}

.legal-facts {
  display: grid;
  grid-template-columns: minmax(130px, .43fr) 1fr;
  gap: 0;
  margin: 15px 0 0;
  overflow: hidden;
  border: 1px solid var(--legal-line);
  border-radius: 12px;
}

.legal-facts dt,
.legal-facts dd {
  margin: 0;
  padding: 11px 13px;
  border-bottom: 1px solid var(--legal-line);
}

.legal-facts dt {
  background: #fff7f3;
  color: #654950;
  font-size: 13px;
  font-weight: 900;
}

.legal-facts dd { color: #5d4a4f; }
.legal-facts dt:last-of-type,
.legal-facts dd:last-of-type { border-bottom: 0; }

.legal-steps {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: install-step;
}

.legal-steps li {
  position: relative;
  min-height: 52px;
  padding: 9px 0 8px 62px;
}

.legal-steps li::before {
  position: absolute;
  top: 6px;
  left: 0;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #f7d9cf;
  color: var(--legal-red-deep);
  content: counter(install-step);
  counter-increment: install-step;
  font-weight: 900;
}

.legal-steps strong { display: block; color: #422930; }

.legal-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.legal-primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e4583f, var(--legal-red));
  box-shadow: 0 6px 0 #941e2d;
  color: #fff !important;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.legal-primary-button:hover,
.legal-primary-button:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.legal-action-note { margin: 0; color: #806d70; font-size: 13px; }

.legal-footer {
  padding: 27px 0 max(32px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--legal-line);
  background: #201316;
  color: rgba(255, 255, 255, .73);
}

.legal-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 13px 24px;
  font-size: 13px;
}

.legal-footer a { color: #fff; font-weight: 800; text-decoration: none; }
.legal-footer a:hover, .legal-footer a:focus-visible { text-decoration: underline; }

@media (max-width: 620px) {
  .legal-topbar__inner,
  .legal-main,
  .legal-footer__inner { width: min(100% - 28px, 920px); }
  .legal-topbar__inner { min-height: 60px; }
  .legal-brand img { width: 124px; }
  .legal-main { padding: 31px 0 44px; }
  .legal-hero p { font-size: 16px; }
  .legal-card { padding: 23px 19px; border-radius: 14px; }
  .legal-card h2 { font-size: 21px; }
  .legal-facts { grid-template-columns: 1fr; }
  .legal-facts dt { border-bottom: 0; padding-bottom: 3px; }
  .legal-facts dd { padding-top: 4px; }
}
