/* ============================================================
   FitPrint Studio — Legal Pages Stylesheet
   ============================================================ */

/* ── Legal hero ─────────────────────────────────────────── */
.legal-hero {
  background: var(--black);
  padding: 80px 0 48px;
  margin-top: var(--nav-h);
}
.legal-hero h1 {
  font-family: var(--fh);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 60px);
  text-transform: uppercase;
  color: var(--white);
  margin: 8px 0 12px;
  line-height: 1;
}
.legal-hero__meta {
  font-size: 13px;
  color: rgba(255,255,255,.45);
}

/* ── Legal body layout ──────────────────────────────────── */
.legal-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  padding-top: 56px;
  padding-bottom: 80px;
  align-items: start;
}

/* ── TOC sidebar ────────────────────────────────────────── */
.legal-toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  background: var(--off);
  border-radius: 2px;
  padding: 20px;
  border-left: 3px solid var(--red);
}
.legal-toc__title {
  font-family: var(--fh);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray);
  margin-bottom: 12px;
}
.legal-toc ol {
  list-style: none;
  counter-reset: toc;
}
.legal-toc ol li {
  counter-increment: toc;
  margin-bottom: 6px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.legal-toc ol li::before {
  content: counter(toc) ".";
  font-size: 11px;
  color: var(--red);
  font-weight: 700;
  flex-shrink: 0;
}
.legal-toc a {
  font-size: 13px;
  color: #444;
  text-decoration: none;
  line-height: 1.4;
  transition: color .2s;
}
.legal-toc a:hover { color: var(--red); }

/* ── Legal content ──────────────────────────────────────── */
.legal-content section {
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid #ebebeb;
}
.legal-content section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.legal-content h2 {
  font-family: var(--fh);
  font-weight: 700;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--black);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}
.legal-content h3 {
  font-family: var(--fh);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #333;
  margin: 24px 0 10px;
}
.legal-content p {
  font-size: 14px;
  color: #444;
  line-height: 1.8;
  margin-bottom: 14px;
}
.legal-content ul, .legal-content ol {
  margin: 0 0 16px 0;
  padding-left: 0;
  list-style: none;
}
.legal-content ul li, .legal-content ol li {
  font-size: 14px;
  color: #444;
  line-height: 1.7;
  padding: 5px 0 5px 22px;
  position: relative;
  border-bottom: 1px solid rgba(0,0,0,.04);
}
.legal-content ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 11px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
}
.legal-content ol {
  counter-reset: list;
}
.legal-content ol li {
  counter-increment: list;
}
.legal-content ol li::before {
  content: counter(list) ".";
  position: absolute;
  left: 0; top: 5px;
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
}
.legal-content a {
  color: var(--red);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(232,0,29,.3);
  transition: border-color .2s;
}
.legal-content a:hover { border-color: var(--red); }
.legal-content address {
  font-style: normal;
  background: var(--off);
  padding: 20px;
  border-radius: 2px;
  border-left: 3px solid var(--red);
  font-size: 14px;
  line-height: 1.8;
  color: #444;
}

/* ── Highlight boxes ────────────────────────────────────── */
.legal-highlight {
  background: rgba(232,0,29,.05);
  border-left: 4px solid var(--red);
  padding: 16px 20px;
  border-radius: 0 2px 2px 0;
  margin: 16px 0 20px;
  font-size: 14px;
  color: #333;
  line-height: 1.7;
}
.legal-highlight--warning {
  background: rgba(232,0,29,.08);
}

/* ── Carrier grid ───────────────────────────────────────── */
.carrier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0;
}
.carrier-card {
  background: var(--off);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 20px;
  border-top: 3px solid var(--red);
}
.carrier-card h3 {
  font-family: var(--fh);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  color: var(--black);
  margin: 0 0 8px;
}
.carrier-card p {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.6;
  margin: 0;
}

/* ── Cookie table ───────────────────────────────────────── */
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 24px;
  font-size: 13px;
}
.cookie-table th {
  background: var(--black);
  color: var(--white);
  padding: 10px 14px;
  text-align: left;
  font-family: var(--fh);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.cookie-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: #444;
  vertical-align: top;
}
.cookie-table tr:nth-child(even) td { background: var(--off); }
.cookie-table tr:hover td { background: rgba(232,0,29,.03); }

/* ── Cookie banner ──────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9998;
  background: var(--black);
  border-top: 3px solid var(--red);
  padding: 20px var(--pad);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform .35s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner__text {
  flex: 1;
  font-size: 13px;
  color: rgba(255,255,255,.75);
  line-height: 1.6;
  min-width: 200px;
}
.cookie-banner__text a { color: rgba(255,255,255,.9); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.cookie-btn {
  padding: 10px 20px;
  font-family: var(--fb);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .5px;
  text-transform: uppercase;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}
.cookie-btn--accept {
  background: var(--red);
  color: var(--white);
}
.cookie-btn--accept:hover { background: var(--redd); transform: translateY(-1px); }
.cookie-btn--decline {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.8);
}
.cookie-btn--decline:hover { background: rgba(255,255,255,.18); }
.cookie-btn--settings {
  background: transparent;
  color: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.2);
}
.cookie-btn--settings:hover { border-color: rgba(255,255,255,.5); color: rgba(255,255,255,.8); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .legal-body { grid-template-columns: 1fr; gap: 32px; }
  .legal-toc { position: static; }
  .carrier-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .legal-hero { padding: 60px 0 36px; }
  .legal-hero h1 { font-size: 32px; }
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .cookie-banner__actions { width: 100%; }
  .cookie-btn { flex: 1; text-align: center; }
}
