/* Legal pages template (A10 design, Penpot ChemAI_Static pages Privacy / Terms / Refund). Loaded after css/home.css. */

.lp { --lp-line: #1e3a5f; --lp-body: #cbd5e1; }
.lp h2, .lp h3 { margin: 0; color: #fff; }
.lp .hm-eyebrow.hm-bl, .lp .hm-eyebrow.hm-vi, .lp .hm-eyebrow.hm-am, .lp-kicker { color: var(--c, #10b981); }
.lp button { min-height: 0; } /* main.css / mobile.css give every button min-height 44px */
.lp :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lp a:not(.lp-btn) { color: #10b981; text-decoration: underline; text-underline-offset: 2px; }
.lp-kicker { font: 600 11px/1.2 var(--hm-mono); letter-spacing: 1.5px; text-transform: uppercase; }

.lp-tile {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 48px; height: 48px; border-radius: 12px; background: rgba(var(--a), .18);
}
.lp-tile--sm { width: 44px; height: 44px; border-radius: 10px; }
.lp-ic { width: 24px; height: 24px; }

/* ---------- Legal tabs strip ---------- */
.lp-tabs { background: var(--hm-foot); border-bottom: 1px solid var(--lp-line); }
.lp-tabs__row { display: flex; align-items: center; gap: 8px; padding-top: 14px; padding-bottom: 14px; }
.lp-tabs__label { font: 600 11px/1.5 var(--hm-mono); letter-spacing: 1.5px; color: #64748b; }
.lp-tabs ul { display: flex; gap: 8px; }
.lp-tabs li a {
    display: block; padding: 8px 14px; border: 1px solid rgba(var(--a), .45); border-radius: 999px;
    background: var(--hm-section); font-size: 14px; font-weight: 500; line-height: 1.5; white-space: nowrap;
    color: var(--hm-text) !important; text-decoration: none !important;
}
.lp-tabs li a[aria-current="page"] { background: var(--c); border-color: var(--c); color: var(--hm-navy) !important; font-weight: 600; }
.lp-tabs__date { margin-left: auto !important; font: 500 11px/1.5 var(--hm-mono); letter-spacing: 1px; color: var(--hm-muted); white-space: nowrap; }

/* ---------- Hero ---------- */
.lp-hero { padding: 56px 0 40px; }
.lp-hero__grid { display: grid; grid-template-columns: minmax(0, 612px) minmax(0, 540px); justify-content: space-between; gap: 48px; align-items: center; }
.lp-hero__copy { display: flex; flex-direction: column; gap: 18px; }
.lp-hero h1 { font-size: 46px; font-weight: 700; line-height: 1.1; letter-spacing: -.5px; color: #fff; text-align: left; background: none; -webkit-text-fill-color: currentColor; }
.lp-lead { font-size: 18px; line-height: 1.55; color: var(--hm-muted); }
.lp-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.lp-chips li > * {
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px;
    border: 1px solid rgba(var(--a), .45); border-radius: 999px; background: var(--hm-section);
    font: 500 14px/1.3 Inter, system-ui, sans-serif; color: var(--hm-text) !important; text-decoration: none !important; cursor: default;
}
.lp-chips a, .lp-chips button { cursor: pointer !important; }
.lp-chips a:hover, .lp-chips button:hover { border-color: var(--c); }
.lp-hero__art { width: 100%; height: auto; }

/* ---------- At a glance ---------- */
.lp-glance { padding: 16px 0 48px; }
.lp-glance h2 { margin-top: 8px; font-size: 30px; font-weight: 700; line-height: 1.2; letter-spacing: -.3px; }
.lp-glance__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px !important; }
.lp-card { display: flex; gap: 16px; padding: 20px; border: 1px solid rgba(var(--a), .35); border-radius: 12px; background: var(--hm-section); }
.lp-card h3 { font-size: 17px; font-weight: 600; line-height: 1.3; }
.lp-card p { margin-top: 6px; font-size: 14px; line-height: 1.55; color: var(--hm-muted); }

/* ---------- Policy body: TOC strip, section cards ---------- */
.lp-body { display: flex; flex-direction: column; gap: 20px; padding-top: 8px; padding-bottom: 56px; }
.lp-toc { display: flex; flex-direction: column; gap: 14px; padding: 20px 24px; border: 1px solid rgba(59, 130, 246, .3); border-radius: 16px; background: var(--hm-section); }
.lp-toc__top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lp-toc__req { margin-left: auto !important; font-size: 14px; line-height: 1.3; color: var(--lp-body); }
.lp-toc__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.lp-toc__chips a {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px;
    border: 1px solid rgba(var(--a), .3); border-radius: 999px; background: var(--hm-navy);
    font-size: 14px; font-weight: 500; line-height: 1.3; color: var(--lp-body) !important; text-decoration: none !important;
}
.lp-toc__chips span { font: 600 11px/1.2 var(--hm-mono); letter-spacing: 1.5px; color: var(--c); }
.lp-toc__chips a:hover, .lp-toc__chips a[aria-current="true"] { background: rgba(var(--a), .16); border-color: rgba(var(--a), .7); color: #fff !important; font-weight: 600; }

.lp-sec {
    display: flex; flex-direction: column; gap: 18px; padding: 28px;
    border: 1px solid rgba(var(--a), .3); border-radius: 16px; background: var(--hm-section); scroll-margin-top: 96px;
}
.lp-sec__head { display: flex; align-items: center; gap: 16px; }
.lp-sec__head .lp-kicker { margin-bottom: 4px; }
.lp-sec h2 { font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: -.2px; }
.lp-p { font-size: 15px; line-height: 1.65; color: var(--lp-body); }
.lp-note { font-size: 15px; line-height: 1.65; color: var(--hm-muted); }
.lp-list { display: flex; flex-direction: column; gap: 10px; }
.lp-list li { position: relative; padding-left: 19px; font-size: 15px; line-height: 1.6; color: var(--lp-body); }
.lp-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.lp-list b { display: block; font-weight: 600; line-height: 1.5; color: #fff; }
.lp-callout { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px solid rgba(239, 68, 68, .45); border-radius: 12px; background: rgba(239, 68, 68, .1); }
.lp-callout p { font-size: 14px; line-height: 1.6; color: var(--lp-body); }
.lp-callout .lp-callout__title { font-size: 15px; font-weight: 600; line-height: 1.4; color: #fff; }

.lp-table { border: 1px solid var(--lp-line); border-radius: 10px; overflow: hidden; background: var(--hm-navy); }
.lp-table table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.lp-table th, .lp-table td { padding: 12px 16px; font-size: 14px; line-height: 1.5; text-align: left; vertical-align: top; }
.lp-table thead th { background: rgba(var(--a), .14); font: 600 11px/1.3 var(--hm-mono); letter-spacing: 1.5px; text-transform: uppercase; color: var(--c); }
.lp-table tbody th { font-weight: 500; color: #fff; }
.lp-table td { color: var(--lp-body); }
.lp-table tbody tr:nth-child(even) { background: #0d1f3a; }

/* ---------- Buttons ---------- */
.lp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 16px; border-radius: 10px;
    font: 600 14px/1.3 Inter, system-ui, sans-serif; text-decoration: none !important; cursor: pointer; white-space: nowrap;
}
.lp-btn--line { border: 1px solid rgba(var(--a), .6); background: transparent; color: var(--hm-text) !important; }
.lp-btn--line .hm-i { color: #a78bfa; }
.lp-btn--line:hover { border-color: var(--c); }
.lp-btn--fill { border: 0; background: var(--c); color: var(--hm-navy) !important; }
.lp-btn--fill:hover { filter: brightness(1.08); }

/* ---------- Grievance band ---------- */
.lp-grievance {
    display: grid; grid-template-columns: 440px minmax(0, 1fr); gap: 40px; align-items: center; margin-top: 36px; padding: 32px;
    border: 1px solid rgba(var(--a), .45); border-radius: 20px; background: var(--hm-section); scroll-margin-top: 96px;
}
.lp-grievance__art { width: 100%; height: auto; }
.lp-grievance__details { display: flex; flex-direction: column; gap: 14px; }
.lp-grievance h2 { font-size: 30px; font-weight: 700; line-height: 1.2; letter-spacing: -.3px; }
.lp-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.lp-facts div { padding: 12px 14px; border: 1px solid rgba(var(--a), .35); border-radius: 10px; background: var(--hm-navy); }
.lp-facts dt { font: 600 10px/1.2 var(--hm-mono); letter-spacing: 1.5px; color: var(--c); }
.lp-facts dd { margin: 4px 0 0; font-size: 15px; font-weight: 500; line-height: 1.45; color: #fff; }
.lp-facts dd a:not(.lp-btn) { color: #fff; }
.lp-grievance .lp-note { font-size: 14px; line-height: 1.6; }
.lp-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-btns .lp-btn { padding: 12px 18px; font-size: 15px; }
.lp-laws { font: 500 11px/1.5 var(--hm-mono); letter-spacing: .5px; color: #64748b; }

@media (max-width: 1180px) {
    .lp-hero__grid { grid-template-columns: 1fr; }
    .lp-hero__art { max-width: 540px; }
    .lp-glance__grid { grid-template-columns: 1fr 1fr; }
    .lp-grievance { grid-template-columns: 1fr; }
    .lp-grievance__art { max-width: 440px; }
}

/* 375 design: 16 px gutters, stacked cards, tables as one card per row with labels above the values */
@media (max-width: 760px) {
    .lp .hm-wrap { padding: 0 16px; }
    .lp-tabs__row { flex-wrap: wrap; }
    .lp-tabs ul { order: 3; width: 100%; overflow-x: auto; padding-bottom: 2px; }
    .lp-hero { padding: 32px 0 28px; }
    .lp-hero h1 { font-size: 34px; }
    .lp-lead { font-size: 16px; }
    .lp-glance h2, .lp-grievance h2 { font-size: 24px; }
    .lp-glance__grid { grid-template-columns: 1fr; gap: 12px; }
    .lp-toc { padding: 18px; }
    .lp-toc__req { margin-left: 0 !important; }
    .lp-toc__top .lp-btn { width: 100%; }
    .lp-toc__chips { flex-direction: column; }
    .lp-sec { padding: 18px; gap: 14px; }
    .lp-sec h2 { font-size: 20px; }
    .lp-table { border: 0; background: none; }
    .lp-table table, .lp-table tbody, .lp-table tr, .lp-table th, .lp-table td { display: block; width: auto; }
    .lp-table colgroup, .lp-table thead { display: none; }
    .lp-table tbody { display: flex; flex-direction: column; gap: 10px; }
    .lp-table tbody tr, .lp-table tbody tr:nth-child(even) { padding: 12px; border: 1px solid #2a3a5c; border-radius: 10px; background: #16213a; }
    .lp-table th, .lp-table td { padding: 0; }
    .lp-table tbody th { font-size: 15px; font-weight: 600; }
    .lp-table td { margin-top: 10px; }
    .lp-table td::before { content: attr(data-label); display: block; margin-bottom: 2px; font: 600 10px/1.2 var(--hm-mono); letter-spacing: 1.5px; text-transform: uppercase; color: var(--c); }
    .lp-grievance { padding: 18px; gap: 20px; }
    .lp-facts { grid-template-columns: 1fr; }
    .lp-btns .lp-btn { width: 100%; white-space: normal; }
}

@media print {
    .site-nav, .site-nav__tabbar, .hm-footer, .lp-tabs, .lp-art, .lp-toc button, .lp-chips, [data-print] { display: none !important; }
    body, .lp, .lp-sec, .lp-card, .lp-toc, .lp-grievance, .lp-table { background: #fff !important; color: #000 !important; }
    .lp h1, .lp h2, .lp h3, .lp p, .lp li, .lp td, .lp th, .lp dd, .lp b { color: #000 !important; }
    .lp-sec, .lp-card { break-inside: avoid; border-color: #999 !important; }
}
