/* Shulevo — shared styles for the legal document pages.
 *
 * terms.html and privacy.html each carried their own near-identical copy of
 * this block (they had already drifted: one defined .warn-box, the other
 * .info-box, and only one styled <ol>). Adding four more documents would have
 * meant six copies, so it lives here once.
 *
 * Used by: terms.html, privacy.html, cookies.html, dpa.html, aup.html,
 *          refund-policy.html, child-data-policy.html, legal.html
 */

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

:root {
  --blue: #1a56db; --blue-light: #eff6ff; --blue-mid: #dbeafe;
  --slate: #0f172a; --text: #111827; --text-muted: #6b7280;
  --border: #e5e7eb; --surface: #f9fafb; --white: #ffffff;
  --radius: 12px;
  --amber: #b45309; --amber-light: #fef3c7;
  --green: #166534; --green-light: #dcfce7;
  --shadow: 0 4px 16px rgba(0,0,0,.1);
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; color: var(--text); background: var(--white); }
a { text-decoration: none; color: var(--blue); }
a:hover { text-decoration: underline; }

/* ── Brand lockups ────────────────────────────────────────────────────────────
 * Two assets, used where each one reads:
 *   .brand-logo — the full wordmark (icons/shulevo-logo.png). Its "Shulevo"
 *                 text is near-black, so it only goes on light surfaces
 *                 (icons/shulevo-logo-white.png is the dark-surface version).
 *   .brand-mark — the S-and-cap mark alone (icons/shulevo-icon.png). Blue and red
 *                 on transparent, so it stays legible on the dark footer, where
 *                 it is paired with white text instead of the wordmark.
 * Both are sized by height with width:auto so the source aspect ratios
 * (589×240 and 174×247; vector sources in icons/brand/) are preserved rather than squashed.
 */
.brand-logo { height: 38px; width: auto; display: block; }
.brand-mark { height: 30px; width: auto; flex-shrink: 0; }
@media (max-width: 480px) { .brand-logo { height: 32px; } }

/* ── Chrome ───────────────────────────────────────────────────────────────── */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(255,255,255,.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1160px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; height: 68px; gap: 24px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; color: var(--slate); text-decoration: none; }
.logo-icon { width: 36px; height: 36px; background: var(--blue); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.nav-back { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--blue); background: var(--blue-light); padding: 8px 16px; border-radius: 8px; transition: background .15s; text-decoration: none; }
.nav-back:hover { background: var(--blue-mid); text-decoration: none; }

.page-hero { padding: 130px 0 60px; background: linear-gradient(135deg, #0f172a 0%, #1e40af 60%, #1a56db 100%); text-align: center; }
.page-hero .chip { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); color: #bfdbfe; border-radius: 100px; padding: 5px 14px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; margin-bottom: 20px; }
.page-hero h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 900; color: white; margin-bottom: 12px; }
.page-hero .meta { font-size: 14px; color: #93c5fd; }
.page-hero .lede { max-width: 640px; margin: 14px auto 0; padding: 0 24px; font-size: 15px; line-height: 1.7; color: #bfdbfe; }

/* ── Layout ───────────────────────────────────────────────────────────────── */
.layout { max-width: 1060px; margin: 0 auto; padding: 64px 24px 96px; display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: start; }
.layout-wide { max-width: 1060px; margin: 0 auto; padding: 64px 24px 96px; }
.toc { position: sticky; top: 88px; }
.toc h3 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--text-muted); margin-bottom: 12px; }
.toc ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.toc a { font-size: 13px; color: var(--text-muted); transition: color .15s; display: block; padding: 4px 8px; border-radius: 6px; text-decoration: none; }
.toc a:hover { color: var(--blue); background: var(--blue-light); text-decoration: none; }

/* ── Prose ────────────────────────────────────────────────────────────────── */
.prose h2 { font-size: 22px; font-weight: 800; color: var(--slate); margin: 48px 0 14px; padding-top: 16px; border-top: 1px solid var(--border); }
.prose h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.prose h3 { font-size: 16px; font-weight: 700; color: var(--slate); margin: 24px 0 10px; }
.prose p { font-size: 15px; color: #374151; line-height: 1.8; margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 0 16px 20px; display: flex; flex-direction: column; gap: 8px; }
.prose li { font-size: 15px; color: #374151; line-height: 1.7; }
.prose strong { color: var(--slate); font-weight: 700; }
.prose code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; color: var(--slate); }

/* ── Callouts ─────────────────────────────────────────────────────────────── */
.warn-box, .info-box, .ok-box { border-radius: var(--radius); padding: 16px 20px; margin-bottom: 24px; font-size: 14px; line-height: 1.6; display: flex; gap: 10px; align-items: flex-start; }
.warn-box { background: var(--amber-light); border: 1px solid #fcd34d; color: #92400e; }
.info-box { background: var(--blue-light); border: 1px solid var(--blue-mid); color: #1e40af; }
.ok-box   { background: var(--green-light); border: 1px solid #86efac; color: var(--green); }
.warn-box svg, .info-box svg, .ok-box svg { flex-shrink: 0; margin-top: 1px; }

/* ── Tables ───────────────────────────────────────────────────────────────── */
/* Wrapped in .table-wrap so a wide table scrolls itself instead of the page. */
.table-wrap { overflow-x: auto; margin-bottom: 24px; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
thead th { background: var(--surface); text-align: left; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); padding: 12px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
tbody td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: #374151; line-height: 1.6; vertical-align: top; }
tbody tr:last-child td { border-bottom: none; }
tbody td strong { color: var(--slate); }

/* ── Cards ────────────────────────────────────────────────────────────────── */
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-top: 32px; }
.contact-card h3 { font-size: 15px; font-weight: 700; color: var(--slate); margin-bottom: 12px; }
.contact-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 8px; }

.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 40px; }
.doc-card { display: block; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; transition: border-color .15s, box-shadow .15s; text-decoration: none; }
.doc-card:hover { border-color: var(--blue); box-shadow: var(--shadow); text-decoration: none; }
.doc-card .doc-icon { width: 38px; height: 38px; border-radius: 9px; background: var(--blue-light); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.doc-card h3 { font-size: 16px; font-weight: 700; color: var(--slate); margin-bottom: 6px; }
.doc-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
footer { background: var(--slate); padding: 40px 0 24px; }
.footer-inner { max-width: 1160px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; color: white; text-decoration: none; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: #94a3b8; transition: color .15s; text-decoration: none; }
.footer-links a:hover { color: white; }
.footer-copy { max-width: 1160px; margin: 20px auto 0; padding: 20px 24px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; color: #64748b; text-align: center; }

@media (max-width: 768px) {
  .layout { grid-template-columns: 1fr; }
  .toc { display: none; }
}
