/* =========================================================
   Brief — Legal & Subpage Shared Styles
   Imported by privacy.html / terms.html / contact.html
   Reuses the design system from Landing Page v7.html
   ========================================================= */

:root {
  --ink: #1A1814;
  --paper: #F6F4EF;
  --lime: #D7FF3C;
  --lime2: #B8E021;
}

* , *::before, *::after { border-radius: 0 !important; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Zen Kaku Gothic Antique', Inter, sans-serif;
  font-feature-settings: 'palt';
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

.en { font-family: 'Inter', 'Zen Kaku Gothic Antique', sans-serif; }
.mono { font-family: 'JetBrains Mono', monospace; font-feature-settings: 'tnum'; }
.tnum { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }
.tightest { letter-spacing: -0.045em; }

/* ---------- Container ---------- */
.container-x {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ---------- Borders ---------- */
.b-ink { border-color: #1A1814; }
.b1 { border: 1px solid #1A1814; }
.b2 { border: 2px solid #1A1814; }
.bt1 { border-top: 1px solid #1A1814; }
.bb1 { border-bottom: 1px solid #1A1814; }
.bt2 { border-top: 2px solid #1A1814; }
.bb2 { border-bottom: 2px solid #1A1814; }

/* ---------- Labels ---------- */
.label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
}
.label-sm {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
}

/* ---------- Badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: #1A1814;
  color: #F6F4EF;
  white-space: nowrap;
  text-decoration: none;
}
.badge-lime { background: var(--lime); color: #1A1814; }
.badge-line { background: #F6F4EF; color: #1A1814; border: 2px solid #1A1814; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  font-family: 'Zen Kaku Gothic Antique', sans-serif;
  font-weight: 900;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background .12s ease, color .12s ease;
  border: 2px solid #1A1814;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}
.btn-fill { background: #1A1814; color: #F6F4EF; }
.btn-fill:hover { background: var(--lime); color: #1A1814; }
.btn-ghost { background: #F6F4EF; color: #1A1814; }
.btn-ghost:hover { background: #1A1814; color: #F6F4EF; }
.btn-lime { background: var(--lime); color: #1A1814; }
.btn-lime:hover { background: #1A1814; color: var(--lime); }
.arr { display: inline-block; transition: transform .15s ease; }
a:hover .arr { transform: translateX(4px); }

/* ---------- NAV ---------- */
.legal-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #F6F4EF;
  border-bottom: 2px solid #1A1814;
}
.legal-nav__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.legal-nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.legal-nav__logo-mark {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: #1A1814;
  color: #F6F4EF;
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
  padding-bottom: 2px;
}
.legal-nav__title {
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.legal-nav__sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.7;
  margin-top: 4px;
}

/* ---------- HEADER (page header) ---------- */
.legal-header {
  border-bottom: 2px solid #1A1814;
  padding: 80px 0 64px;
}
.legal-header__crumb {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.legal-header__crumb a { color: inherit; text-decoration: none; }
.legal-header__crumb a:hover { background: #1A1814; color: #F6F4EF; padding: 0 4px; }
.legal-header__crumb .sep { opacity: 0.4; }
.legal-header__title {
  font-weight: 900;
  letter-spacing: -0.045em;
  font-size: clamp(40px, 6.5vw, 88px);
  line-height: 1.05;
  text-wrap: balance;
  margin: 0;
}
.legal-header__lede {
  margin-top: 24px;
  font-size: 16px;
  line-height: 2;
  max-width: 720px;
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-break: strict;
}
.legal-header__meta {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 560px;
}
.legal-header__meta dt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 6px;
}
.legal-header__meta dd {
  margin: 0;
  font-weight: 700;
  font-size: 14px;
}

/* ---------- BODY ---------- */
.legal-body {
  padding: 64px 0 96px;
}
.legal-section {
  padding-top: 48px;
  padding-bottom: 8px;
  border-top: 1px solid rgba(26,24,20,0.15);
}
.legal-section:first-of-type { border-top: 0; padding-top: 0; }
.legal-section__num {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
  margin-bottom: 10px;
  opacity: 0.6;
}
.legal-section__title {
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.3;
  margin: 0 0 20px;
  text-wrap: balance;
}
.legal-section p {
  font-size: 15px;
  line-height: 2;
  margin: 0 0 16px;
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-break: strict;
}
.legal-section ul, .legal-section ol {
  margin: 0 0 16px;
  padding-left: 0;
  list-style: none;
}
.legal-section ul li, .legal-section ol li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  line-height: 2;
  margin-bottom: 6px;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.legal-section ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.95em;
  width: 14px;
  height: 2px;
  background: #1A1814;
}
.legal-section ol {
  counter-reset: items;
}
.legal-section ol li {
  counter-increment: items;
}
.legal-section ol li::before {
  content: counter(items, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 12px;
  opacity: 0.55;
}
.legal-section .sub {
  margin-top: 8px;
  padding: 16px 20px;
  border: 2px solid #1A1814;
  background: #F6F4EF;
}
.legal-section .sub-lime { background: var(--lime); }

/* Inline elements */
.legal-section strong { font-weight: 700; }
.legal-section a { color: #1A1814; background: var(--lime); padding: 0 4px; text-decoration: none; }
.legal-section a:hover { background: #1A1814; color: #F6F4EF; }

/* Definition list (commercial table) */
.legal-dl {
  display: grid;
  grid-template-columns: 1fr;
  border: 2px solid #1A1814;
  background: #F6F4EF;
}
.legal-dl > div {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-top: 1px solid #1A1814;
}
.legal-dl > div:first-child { border-top: 0; }
.legal-dl dt {
  padding: 16px 20px;
  background: #1A1814;
  color: #F6F4EF;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0;
}
.legal-dl dd {
  padding: 16px 20px;
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
@media (max-width: 640px) {
  .legal-dl > div { grid-template-columns: 1fr; }
  .legal-dl dt { padding: 10px 16px; }
}

/* ---------- TOC ---------- */
.legal-toc {
  border: 2px solid #1A1814;
  background: #F6F4EF;
  padding: 24px;
  margin-bottom: 56px;
}
.legal-toc__title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.legal-toc__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #1A1814;
}
.legal-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}
.legal-toc li {
  counter-increment: toc;
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: baseline;
  border-top: 1px solid rgba(26,24,20,0.12);
  padding: 10px 0;
}
.legal-toc li:first-child { border-top: 0; }
.legal-toc li::before {
  content: counter(toc, decimal-leading-zero);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 12px;
  opacity: 0.55;
}
.legal-toc a {
  color: inherit;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
}
.legal-toc a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }

/* ---------- FOOTER ---------- */
.legal-footer {
  background: #1A1814;
  color: #F6F4EF;
  padding: 64px 0 24px;
}
.legal-footer__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}
.legal-footer__cta h2 {
  font-weight: 900;
  letter-spacing: -0.045em;
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
.legal-footer__cta .btn { font-size: 13px; }

.legal-footer__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px;
  margin-top: 40px;
}
.legal-footer__col-brand { grid-column: span 12 / span 12; }
.legal-footer__col-links { grid-column: span 6 / span 6; }
@media (min-width: 768px) {
  .legal-footer__col-brand { grid-column: span 6 / span 6; }
  .legal-footer__col-links { grid-column: span 3 / span 3; }
}
.legal-footer__brand-mark {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: var(--lime);
  color: #1A1814;
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
  padding-bottom: 2px;
}
.legal-footer__col-links .label { color: var(--lime); margin-bottom: 16px; display: block; }
.legal-footer__col-links ul { margin: 0; padding: 0; list-style: none; }
.legal-footer__col-links li { margin-bottom: 8px; font-size: 14px; }
.legal-footer__col-links a { color: #F6F4EF; text-decoration: none; opacity: 0.85; }
.legal-footer__col-links a:hover { color: var(--lime); opacity: 1; }

.legal-footer__bottom {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.18);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.6;
}

::selection { background: var(--lime); color: #1A1814; }
