/* CertLogIQ — legal pages (privacy-policy.html, terms-and-conditions.html).
   Same chrome as the landing page: graphite header, Ring logo, Inter Tight
   wordmark with the red IQ. Content in a readable column with a sticky
   contents list on wide screens and a fold-out one on phones. */

@font-face { font-family: "InterTightBlack"; src: url(/fonts/InterTight-Black.woff2) format("woff2"); font-weight: 900; font-display: swap; }

:root {
    --ink: #0F141A;
    --ink-2: #334155;
    --ink-3: #64748B;
    --line: #E4E8EC;
    --paper: #FFFFFF;
    --paper-sunk: #F6F7F9;
    --red: #EC2629;
    --red-d: #B71C1C;
    --red-pale: #FFF1F2;
    --dark: #0D1117;
    --radius: 14px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--paper-sunk); color: var(--ink-2);
    line-height: 1.7; font-size: 16.5px; -webkit-font-smoothing: antialiased;
}
a { color: var(--red-d); }

/* ── Header ───────────────────────────────────────────── */
.lg-nav { position: sticky; top: 0; z-index: 50; background: rgba(13,17,23,.97); backdrop-filter: blur(12px);
          border-bottom: 1px solid rgba(255,255,255,.06); }
.lg-nav-inner { max-width: 1160px; margin: 0 auto; height: 68px; padding: 0 20px; display: flex; align-items: center; gap: 24px; }
.lg-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.lg-logo img { width: 38px; height: 38px; border-radius: 10px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.lg-wm { font-family: "InterTightBlack", system-ui, sans-serif; font-weight: 900; font-size: 23px; color: #fff; letter-spacing: .02em; }
.lg-wm b, .lg-foot .lg-wm b { color: var(--red); font-weight: 900; }
.lg-link { color: rgba(255,255,255,.7); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.lg-link:hover { color: #fff; }
.lg-btn { background: var(--red); color: #fff; text-decoration: none; font-weight: 700; font-size: 14.5px;
          padding: 9px 18px; border-radius: 9px; white-space: nowrap; }
.lg-btn:hover { background: var(--red-d); }

/* ── Hero ─────────────────────────────────────────────── */
.lg-hero { background: radial-gradient(ellipse 70% 90% at 80% 0%, rgba(236,38,41,.16), transparent 70%), var(--dark);
           color: #fff; padding: 52px 20px 40px; }
.lg-hero-inner { max-width: 1160px; margin: 0 auto; }
.lg-switch { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.07);
             border: 1px solid rgba(255,255,255,.1); margin-bottom: 22px; }
.lg-switch a { color: rgba(255,255,255,.7); text-decoration: none; font-size: 14px; font-weight: 600; padding: 7px 16px; border-radius: 999px; }
.lg-switch a[aria-current="page"] { background: #fff; color: var(--ink); }
.lg-hero h1 { font-size: clamp(34px, 5vw, 50px); line-height: 1.08; font-weight: 700; letter-spacing: -.02em; margin-bottom: 12px; }
.lg-hero p.lead { font-size: 18px; color: rgba(255,255,255,.72); max-width: 640px; }
.lg-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: 14px; color: rgba(255,255,255,.55); }
.lg-meta span { display: inline-flex; align-items: center; gap: 7px; }
.lg-meta i { color: var(--red); }

/* ── At a glance ──────────────────────────────────────── */
.lg-glance { max-width: 1160px; margin: -22px auto 0; padding: 0 20px; position: relative; }
.lg-glance-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.lg-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 15px;
           box-shadow: 0 6px 22px rgba(15,20,26,.06); }
.lg-card i { width: 34px; height: 34px; border-radius: 9px; background: var(--red-pale); color: var(--red-d);
             display: inline-flex; align-items: center; justify-content: center; font-size: 15px; margin-bottom: 9px; }
.lg-card strong { display: block; color: var(--ink); font-size: 15.5px; line-height: 1.3; margin-bottom: 3px; }
.lg-card span { font-size: 14px; color: var(--ink-3); line-height: 1.45; display: block; }

/* ── Body: contents + text ────────────────────────────── */
.lg-body { max-width: 1160px; margin: 34px auto 0; padding: 0 20px 60px; display: grid;
           grid-template-columns: 250px minmax(0, 1fr); gap: 40px; align-items: start; }
.lg-toc { position: sticky; top: 88px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
          padding: 14px 10px; max-height: calc(100vh - 110px); overflow: auto; }
.lg-toc-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 4px 10px 8px; }
.lg-toc summary { list-style: none; cursor: default; }
.lg-toc summary::-webkit-details-marker { display: none; }
.lg-toc ol { list-style: none; }
.lg-toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: 14px; line-height: 1.35;
            border-left: 3px solid transparent; }
.lg-toc a:hover { background: var(--paper-sunk); }
.lg-toc a.is-active { color: var(--ink); font-weight: 600; background: var(--paper-sunk); border-left-color: var(--red); }

.lg-doc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 44px 30px; min-width: 0; }
.lg-doc section { padding: 30px 0 6px; border-bottom: 1px solid var(--line); }
.lg-doc section:last-child { border-bottom: 0; }
.lg-doc h2 { font-size: 23px; line-height: 1.25; color: var(--ink); font-weight: 700; letter-spacing: -.01em; margin-bottom: 14px; }
.lg-doc h3 { font-size: 17.5px; color: var(--ink); font-weight: 600; margin: 20px 0 8px; }
.lg-doc p { margin-bottom: 14px; }
.lg-doc ul, .lg-doc ol { margin: 0 0 16px 4px; padding-left: 20px; }
.lg-doc li { margin-bottom: 8px; padding-left: 4px; }
.lg-doc li::marker { color: var(--red); }
.lg-doc strong { color: var(--ink); }
.lg-doc .highlight { background: var(--red-pale); border: 1px solid #FECDD3; border-left: 4px solid var(--red); border-radius: 10px;
                     padding: 14px 16px; margin: 16px 0; color: var(--ink); }
.lg-doc .highlight p:last-child { margin-bottom: 0; }
.lg-doc .contact-box { background: var(--paper-sunk); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin: 14px 0; }
.lg-doc .contact-box p { margin-bottom: 6px; }
.lg-doc .email { font-weight: 700; }
.lg-doc .address { color: var(--ink-3); }
.lg-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 600; text-decoration: none; }

/* ── Footer ───────────────────────────────────────────── */
.lg-foot { background: #1C2128; color: rgba(255,255,255,.55); padding: 34px 20px; font-size: 14px; }
.lg-foot-inner { max-width: 1160px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.lg-foot .lg-logo img { width: 30px; height: 30px; border-radius: 8px; }
.lg-foot .lg-wm { font-size: 19px; }
.lg-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.lg-foot a { color: rgba(255,255,255,.7); text-decoration: none; }
.lg-foot a:hover { color: #fff; }
.lg-foot small { width: 100%; color: rgba(255,255,255,.4); }

/* ── Phones and tablets ───────────────────────────────── */
@media (max-width: 920px) {
    .lg-glance-grid { grid-template-columns: repeat(2, 1fr); }
    .lg-body { grid-template-columns: 1fr; gap: 16px; margin-top: 22px; }
    .lg-toc { position: static; max-height: none; padding: 0; }
    .lg-toc summary { cursor: pointer; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; }
    .lg-toc summary::after { content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 12px; color: var(--ink-3); }
    .lg-toc[open] summary::after { content: "\f077"; }
    .lg-toc .lg-toc-title { padding: 0; }
    .lg-toc ol { padding: 0 8px 10px; }
    .lg-doc { padding: 4px 20px 22px; }
    .lg-link.hide-sm { display: none; }
}
@media (max-width: 520px) {
    body { font-size: 16px; }
    .lg-glance-grid { grid-template-columns: 1fr; gap: 8px; }
    /* Compact rows on a phone, so the text starts sooner. */
    .lg-card { display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; padding: 11px 14px; }
    .lg-card i { grid-row: span 2; margin: 0; }
    .lg-card strong { font-size: 15px; margin: 0; }
    .lg-card span { font-size: 13.5px; }
    .lg-nav-inner { gap: 14px; }
    .lg-wm { font-size: 20px; }
    .lg-hero { padding: 36px 16px 38px; }
    .lg-glance, .lg-body { padding-left: 16px; padding-right: 16px; }
    .lg-doc h2 { font-size: 20.5px; }
}

/* ── Print: just the words ────────────────────────────── */
@media print {
    .lg-nav, .lg-toc, .lg-glance, .lg-foot, .lg-switch, .lg-back { display: none !important; }
    body { background: #fff; font-size: 11.5pt; }
    .lg-hero { background: none; color: #000; padding: 0 0 12px; }
    .lg-hero p.lead, .lg-meta { color: #333; }
    .lg-body { display: block; margin: 0; padding: 0; }
    .lg-doc { border: 0; padding: 0; }
    .lg-doc section { break-inside: avoid-page; }
}
