/* UsedMachinery24 — hand-written stylesheet, no frameworks. */

:root {
  --ink: #0e1620;
  --ink-2: #1b2635;
  --text: #26313f;
  --muted: #6b7788;
  --line: #e2e6eb;
  --bg: #f5f6f8;
  --surface: #ffffff;
  --accent: #f0a020;
  --accent-dark: #c97f0c;
  --ok: #1e874b;
  --danger: #c0392b;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);
  --wrap: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
h3 { font-size: 1.15rem; }

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; display: block; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li { margin-bottom: .4rem; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .6rem 1rem; z-index: 100; }

/* ---------- header ---------- */

.site-header { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.brand:hover { color: #fff; }
.brand-mark { color: var(--accent); display: flex; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.6rem; }
.site-nav a { color: #cfd6df; font-weight: 500; font-size: .95rem; }
.site-nav a:hover, .site-nav a.is-active { color: #fff; }
.site-nav a.is-active { box-shadow: inset 0 -2px 0 var(--accent); padding-bottom: 3px; }
.nav-cta { background: var(--accent); color: var(--ink) !important; padding: .5rem .95rem; border-radius: 999px; font-weight: 700 !important; }
.nav-cta:hover { background: #ffb638; }
.nav-burger { display: none; margin-left: auto; flex-direction: column; gap: 4px; cursor: pointer; padding: .5rem; }
.nav-burger span { width: 22px; height: 2px; background: #fff; display: block; }

@media (max-width: 820px) {
  .nav-burger { display: flex; }
  .site-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--ink-2); flex-direction: column; align-items: flex-start;
    gap: 0; padding: .5rem 1.25rem 1.25rem;
  }
  .site-nav a { padding: .7rem 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .nav-cta { margin-top: .8rem; border-bottom: 0 !important; width: auto !important; }
}

/* ---------- hero ---------- */

.hero {
  background: linear-gradient(180deg, var(--ink) 0%, #16212e 100%);
  color: #fff; padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
}
.hero h1 { color: #fff; max-width: 20ch; }
.hero p.lead { color: #b9c3d0; font-size: 1.08rem; max-width: 62ch; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 2.2rem; margin-top: 2rem; }
.hero-stats div strong { display: block; font-size: 1.6rem; color: var(--accent); }
.hero-stats div span { color: #9aa6b4; font-size: .88rem; }

/* ---------- search / filters ---------- */

.filters {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem; box-shadow: var(--shadow); margin-top: -2.2rem; position: relative; z-index: 5;
}
.filters form { display: grid; grid-template-columns: 2fr 1.2fr 1fr 1fr auto; gap: .7rem; align-items: end; }
.filters .field { display: flex; flex-direction: column; gap: .3rem; }
.filters label { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
@media (max-width: 900px) { .filters form { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .filters form { grid-template-columns: 1fr; } }

input, select, textarea {
  width: 100%; padding: .62rem .75rem; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; color: var(--text); background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
textarea { min-height: 130px; resize: vertical; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--accent); color: var(--ink); border: 0; border-radius: 8px;
  padding: .68rem 1.2rem; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: #ffb638; color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); color: #fff; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { background: #fff; border-color: var(--muted); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: .4rem .75rem; font-size: .85rem; }

/* ---------- listing ---------- */

.section { padding: clamp(2rem, 4vw, 3.2rem) 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.4rem; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 4 / 3; background: #eceff3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .placeholder { display: grid; place-items: center; height: 100%; color: #aab3bf; font-size: .85rem; }
.badge {
  position: absolute; top: .6rem; left: .6rem; background: rgba(14,22,32,.86); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: .28rem .55rem; border-radius: 5px;
}
.badge.sold { background: var(--danger); }
.badge.featured { background: var(--accent); color: var(--ink); left: auto; right: .6rem; }
.card-body { padding: 1rem 1.05rem 1.15rem; display: flex; flex-direction: column; flex: 1; }
.card-cat { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.card-title { font-size: 1.05rem; margin: .3rem 0 .5rem; }
.card-specs { display: flex; flex-wrap: wrap; gap: .35rem .9rem; font-size: .85rem; color: var(--muted); margin-bottom: .9rem; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.price { font-weight: 800; color: var(--ink); font-size: 1.15rem; }
.price.on-request { font-size: .95rem; color: var(--muted); font-weight: 600; }

.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 3rem 1.5rem; text-align: center; color: var(--muted); }

.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 38px; text-align: center; padding: .45rem .6rem; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; font-size: .9rem;
}
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- detail page ---------- */

.breadcrumbs { font-size: .85rem; color: var(--muted); padding: 1rem 0; }
.breadcrumbs a { color: var(--muted); }
.detail { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 2rem; align-items: start; }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; } }

.gallery { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery-main { aspect-ratio: 4 / 3; background: #eceff3; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: .5rem; padding: .6rem; overflow-x: auto; }
.gallery-thumbs img { width: 92px; height: 70px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 2px solid transparent; }
.gallery-thumbs img.is-active { border-color: var(--accent); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.panel + .panel { margin-top: 1.2rem; }
.price-lg { font-size: 2rem; font-weight: 800; color: var(--ink); line-height: 1.1; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.spec-table th, .spec-table td { text-align: left; padding: .55rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { color: var(--muted); font-weight: 500; width: 45%; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .4rem 1rem; }
.feature-list li { padding-left: 1.4rem; position: relative; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.prose { white-space: pre-line; }

/* ---------- forms / alerts ---------- */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-row { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.form-row label { font-weight: 600; font-size: .9rem; }
.form-row .hint { font-size: .82rem; color: var(--muted); }
.full { grid-column: 1 / -1; }

.alert { padding: .85rem 1rem; border-radius: 8px; margin-bottom: 1rem; border: 1px solid; font-size: .95rem; }
.alert-ok { background: #eaf7ef; border-color: #b9e2c8; color: #16603a; }
.alert-err { background: #fdecea; border-color: #f5c3bd; color: #8f2318; }

/* ---------- content pages ---------- */

.page-head { background: var(--ink); color: #fff; padding: clamp(2rem, 4vw, 3rem) 0; }
.page-head h1 { color: #fff; margin-bottom: .3rem; }
.page-head p { color: #b9c3d0; margin: 0; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.tile .icon { width: 40px; height: 40px; border-radius: 9px; background: #fdf1dc; color: var(--accent-dark); display: grid; place-items: center; margin-bottom: .8rem; font-size: 1.2rem; }
.cat-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }
.cat-chips a {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: .42rem .9rem; font-size: .9rem; color: var(--text);
}
.cat-chips a:hover { border-color: var(--ink); }
.cat-chips a.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.cat-chips a.is-active .muted { color: rgba(255,255,255,.7); }
.sub-chips { margin-top: -.8rem; }
.sub-chips a { font-size: .85rem; padding: .32rem .75rem; background: #eef0f3; border-color: transparent; }
.sub-chips a:hover { background: #fff; border-color: var(--line); }
fieldset.spec-fields legend { font-size: .75rem; }
.filters form { grid-template-columns: 2fr 1.4fr 1fr 1fr auto; }

.cta-band { background: var(--ink-2); color: #fff; border-radius: var(--radius); padding: 2rem; display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 .3rem; }
.cta-band p { color: #b9c3d0; margin: 0; }

/* ---------- footer ---------- */

.site-footer { background: var(--ink); color: #97a2b1; margin-top: 3rem; padding: 3rem 0 1.5rem; font-size: .92rem; }
.site-footer h4 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }
.site-footer a { color: #c3cbd6; }
.site-footer a:hover { color: var(--accent); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 2rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand { color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: .4rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2rem; padding-top: 1.2rem; display: flex; justify-content: space-between; font-size: .85rem; }

/* ---------- admin ---------- */

body.admin { background: #eef0f3; }
.admin-bar { background: var(--ink); color: #fff; padding: .8rem 0; }
.admin-bar .wrap { display: flex; align-items: center; gap: 1.4rem; }
.admin-bar a { color: #cfd6df; font-size: .93rem; }
.admin-bar a:hover, .admin-bar a.is-active { color: #fff; }
.admin-bar .spacer { margin-left: auto; }
.admin-title { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 1.8rem 0 1.2rem; }
.table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { padding: .7rem .85rem; text-align: left; border-bottom: 1px solid var(--line); font-size: .92rem; vertical-align: middle; }
.table th { background: #f8f9fb; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.table tr:last-child td { border-bottom: 0; }
.table img.thumb { width: 64px; height: 48px; object-fit: cover; border-radius: 5px; }
.pill { display: inline-block; padding: .2rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.pill.published { background: #eaf7ef; color: #16603a; }
.pill.draft { background: #fdf1dc; color: #8a5a06; }
.pill.sold { background: #fdecea; color: #8f2318; }
.pill.new { background: var(--accent); color: var(--ink); }
.pill.pending { background: #e8eefc; color: #24408f; }
.pill.rejected { background: #fdecea; color: #8f2318; }
.pill.blocked { background: #ececec; color: #444; }
.login-box { max-width: 400px; margin: 8vh auto; background: #fff; padding: 2rem; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.img-manager { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .8rem; }
.img-manager figure { margin: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.img-manager img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.img-manager figcaption { padding: .4rem; display: flex; justify-content: space-between; align-items: center; font-size: .78rem; gap: .3rem; }
.actions { display: flex; gap: .4rem; flex-wrap: wrap; }

/* ---------- articles ---------- */

.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.4rem; }
.article-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease;
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.article-card .media { aspect-ratio: 16 / 9; background: #eceff3; }
.article-card .media img { width: 100%; height: 100%; object-fit: cover; }
.article-card .media .placeholder { display: grid; place-items: center; height: 100%; color: #aab3bf; font-size: 2rem; }
.article-card .body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.article-card time { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.article-card h3 { font-size: 1.05rem; margin: .35rem 0 .5rem; }
.article-card p { font-size: .92rem; color: var(--muted); margin: 0 0 1rem; }
.article-card .more { margin-top: auto; font-weight: 700; font-size: .9rem; color: var(--accent-dark); }

.article-body { font-size: 1.02rem; line-height: 1.75; }
.article-body h2 { font-size: 1.45rem; margin: 2rem 0 .6rem; }
.article-body h3 { font-size: 1.2rem; margin: 1.6rem 0 .5rem; }
.article-body p { margin: 0 0 1.1rem; }
.article-body ul, .article-body ol { margin: 0 0 1.1rem 1.2rem; padding: 0; }
.article-body li { margin-bottom: .4rem; }
.article-body blockquote {
  margin: 1.4rem 0; padding: .8rem 1.2rem; border-left: 3px solid var(--accent);
  background: #fbfbfc; color: var(--text); font-style: italic;
}
.article-body img { border-radius: 8px; margin: .4rem 0; }
.article-body figure { margin: 1.4rem 0; }
.article-body figcaption { font-size: .85rem; color: var(--muted); margin-top: .4rem; }
.article-body a { color: var(--accent-dark); text-decoration: underline; }
.article-body table { width: 100%; border-collapse: collapse; margin: 0 0 1.2rem; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: .5rem .7rem; text-align: left; }
.article-hero { aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; margin-bottom: 1.6rem; background: #eceff3; }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- editor ---------- */

.editor-toolbar {
  display: flex; flex-wrap: wrap; gap: .3rem; padding: .5rem;
  border: 1px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0; background: #f8f9fb;
}
.editor-toolbar button {
  border: 1px solid transparent; background: transparent; border-radius: 6px;
  padding: .35rem .6rem; font: inherit; font-size: .88rem; cursor: pointer; color: var(--text); min-width: 34px;
}
.editor-toolbar button:hover { background: #fff; border-color: var(--line); }
.editor-toolbar .sep { width: 1px; background: var(--line); margin: .2rem .3rem; }
#editor-surface {
  border: 1px solid var(--line); border-radius: 0 0 8px 8px; background: #fff;
  padding: 1.1rem 1.2rem; min-height: 380px; max-height: 70vh; overflow-y: auto; line-height: 1.7;
}
#editor-surface:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
#editor-surface p { margin: 0 0 1rem; }
#editor-surface h2, #editor-surface h3 { margin: 1.4rem 0 .5rem; }
#editor-surface blockquote { border-left: 3px solid var(--accent); padding-left: 1rem; color: var(--muted); margin: 1rem 0; }
#editor-surface img { max-width: 100%; border-radius: 6px; }
.image-library { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .6rem; margin-top: .8rem; }
.image-library img { aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; border: 2px solid transparent; cursor: pointer; width: 100%; }
.image-library img:hover { border-color: var(--accent); }
.seo-preview { border: 1px solid var(--line); border-radius: 8px; padding: .9rem 1rem; background: #fff; }
.seo-preview .url { color: #1a7f37; font-size: .82rem; }
.seo-preview .title { color: #1a0dab; font-size: 1.05rem; margin: .15rem 0; }
.seo-preview .desc { color: #4d5156; font-size: .88rem; }

/* ---------- cookie consent ---------- */

.consent {
  position: fixed; inset: auto 0 0 0; z-index: 90;
  background: var(--ink); color: #e6eaf0;
  border-top: 3px solid var(--accent);
  box-shadow: 0 -8px 30px rgba(10, 16, 24, .25);
  max-height: 85vh; overflow-y: auto;
}
.consent-inner { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; padding: 1rem 0 1.1rem; }
.consent-main { display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.consent-text strong { color: #fff; display: block; font-size: 1.02rem; margin-bottom: .2rem; }
.consent-text p { margin: 0; font-size: .9rem; color: #aab4c2; max-width: 68ch; }
.consent-text a { color: #fff; text-decoration: underline; }
.consent-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.consent-actions .btn-ghost { color: #e6eaf0; border-color: rgba(255,255,255,.35); }
.consent-actions .btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
.consent-actions .btn-dark { background: #2b3747; color: #fff; }
.consent-actions .btn-dark:hover { background: #3a4859; }

.consent-details { margin-top: 1.1rem; border-top: 1px solid rgba(255,255,255,.12); padding-top: 1rem; }
.consent-group { border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: .9rem 1rem; margin: 0 0 .8rem; }
.consent-group-head { display: flex; gap: .7rem; align-items: flex-start; cursor: pointer; }
.consent-group-head input { width: auto; margin-top: .25rem; accent-color: var(--accent); }
.consent-group-head strong { color: #fff; }
.consent-group-head small { display: block; color: #9aa6b4; font-size: .85rem; margin-top: .15rem; }
.consent-req { color: var(--accent); font-style: normal; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; margin-left: .4rem; }
.consent-table { width: 100%; border-collapse: collapse; margin-top: .8rem; font-size: .85rem; }
.consent-table th { text-align: left; color: #8b97a6; font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; padding: .35rem .5rem; }
.consent-table td { padding: .45rem .5rem; border-top: 1px solid rgba(255,255,255,.1); vertical-align: top; color: #c6ceda; }
.consent-table code { color: var(--accent); font-size: .85rem; }
.consent-empty { color: #8b97a6; font-size: .85rem; margin: .6rem 0 0; }
.consent-details-foot { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.consent-details-foot .muted { color: #8b97a6 !important; }
@media (max-width: 700px) {
  .consent-actions { width: 100%; }
  .consent-actions .btn { flex: 1; justify-content: center; }
}

/* legal pages */
.legal { max-width: 78ch; }
.legal h2 { font-size: 1.3rem; margin: 2.2rem 0 .6rem; }
.legal h3 { font-size: 1.08rem; margin: 1.5rem 0 .4rem; }
.legal p, .legal li { font-size: .98rem; line-height: 1.75; }
.legal ul, .legal ol { margin: 0 0 1.1rem 1.2rem; padding: 0; }
.legal li { margin-bottom: .45rem; }
.legal table { width: 100%; border-collapse: collapse; margin: 0 0 1.4rem; font-size: .92rem; }
.legal th, .legal td { border: 1px solid var(--line); padding: .55rem .7rem; text-align: left; vertical-align: top; }
.legal th { background: #f8f9fb; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.legal .toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }
.legal .toc ol { margin: .4rem 0 0 1.2rem; }
.legal .toc li { margin-bottom: .25rem; font-size: .92rem; }
.legal .updated { color: var(--muted); font-size: .88rem; }
