/* MONTAJI — Pro Video Editor · legal pages (CONPLY)
   One stylesheet shared by every policy page. Self-contained: nothing is
   fetched from a third party, so the policy pages themselves set no cookies
   and send no data anywhere. */

:root {
  --bg: #f4f6fb;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #5b6577;
  --line: #e2e7f0;
  --brand: #4f46e5;
  --brand-2: #3b82f6;
  --brand-soft: #eef2ff;
  --brand-ink: #3730a3;
  --accent: #22d3ee;
  --hero-1: #0b1220;
  --hero-2: #1e1b4b;
  --hero-3: #172554;
  --note: #fff8e6;  --note-line: #f0d9a3;  --note-ink: #5a3a00;
  --ok: #e8f7ee;    --ok-line: #b7e3c7;    --ok-ink: #14532d;
  --warn: #fff1f2;  --warn-line: #fecdd3;  --warn-ink: #881337;
  --thead: #f1f4fa;
  --shadow: 0 2px 12px rgba(15, 23, 42, .06);
  --shadow-lg: 0 10px 28px rgba(15, 23, 42, .12);
  --radius: 16px;
  --max: 920px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --card: #131c31;
    --ink: #e6eaf3;
    --muted: #9aa5bb;
    --line: #263147;
    --brand: #818cf8;
    --brand-2: #60a5fa;
    --brand-soft: #1e1b4b;
    --brand-ink: #c7d2fe;
    --note: #2a2410;  --note-line: #6b5618;  --note-ink: #fde68a;
    --ok: #0f2b1d;    --ok-line: #1f6b3d;    --ok-ink: #bbf7d0;
    --warn: #2d1418;  --warn-line: #7f1d1d;  --warn-ink: #fecdd3;
    --thead: #182341;
    --shadow: 0 2px 12px rgba(0, 0, 0, .35);
    --shadow-lg: 0 10px 28px rgba(0, 0, 0, .5);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
}
a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--brand-2); }
strong { color: var(--ink); }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .92em; background: var(--brand-soft); color: var(--brand-ink); padding: 1px 6px; border-radius: 6px; }

/* ── Header band ─────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--hero-1) 0%, var(--hero-2) 55%, var(--hero-3) 100%);
  color: #fff;
  padding: 42px 20px 34px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 260px at 85% -20%, rgba(99, 102, 241, .45), transparent 70%),
    radial-gradient(420px 220px at 10% 120%, rgba(34, 211, 238, .25), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--accent));
}
.hero .wrap { position: relative; max-width: var(--max); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 14px; font-weight: 700; letter-spacing: .3px; }
.brand .logo {
  width: 46px; height: 46px; border-radius: 13px; flex: none;
  background: linear-gradient(135deg, #6366f1, #3b82f6 60%, #22d3ee);
  display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 22px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.brand small { display: block; font-weight: 500; opacity: .78; font-size: 13px; letter-spacing: 0; }
.hero h1 { margin: 28px 0 10px; font-size: clamp(30px, 4.8vw, 44px); line-height: 1.12; letter-spacing: -.3px; }
.hero .meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; }
.hero .meta span {
  display: inline-flex; gap: 6px; align-items: baseline;
  background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .16);
  padding: 5px 12px; border-radius: 999px;
}
.hero .meta span b { color: #c7d2fe; font-weight: 600; }

/* ── Document nav ────────────────────────────────────────────── */
.docnav { position: sticky; top: 0; z-index: 10; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.docnav .wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.docnav .wrap::-webkit-scrollbar { display: none; }
.docnav a {
  padding: 14px 13px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px;
  border-bottom: 3px solid transparent; white-space: nowrap;
}
.docnav a:hover { color: var(--ink); }
.docnav a.active { color: var(--brand); border-bottom-color: var(--brand); }

/* ── Main ────────────────────────────────────────────────────── */
main { max-width: var(--max); margin: 0 auto; padding: 28px 20px 64px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; margin: 0 0 22px; box-shadow: var(--shadow);
}
.lead { font-size: 17.5px; }
.toc h2 { margin-top: 0; font-size: 14px; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); border: 0; padding: 0; }
.toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 32px; }
.toc li { break-inside: avoid; margin: 4px 0; }
.toc a { text-decoration: none; color: var(--ink); font-weight: 600; }
.toc a:hover { color: var(--brand); text-decoration: underline; }

section { margin: 36px 0; scroll-margin-top: 70px; }
section h2 {
  font-size: 23px; margin: 0 0 12px; padding-bottom: 8px; color: var(--ink);
  border-bottom: 2px solid var(--line); position: relative; letter-spacing: -.2px;
}
section h2::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 84px; height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}
section h3 { font-size: 17px; margin: 22px 0 8px; color: var(--brand-ink); }
p { margin: 10px 0; }
ul, ol { padding-left: 24px; }
li { margin: 6px 0; }
li::marker { color: var(--brand); }
.top { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--muted); text-decoration: none; }
.top:hover { color: var(--brand); }

/* ── Tables ──────────────────────────────────────────────────── */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin: 14px 0; background: var(--card); }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--thead); color: var(--ink); font-weight: 700; font-size: 13px; letter-spacing: .4px; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }

/* ── Callouts ────────────────────────────────────────────────── */
.note, .ok, .warn { border-radius: 12px; padding: 14px 18px; margin: 16px 0; border: 1px solid; }
.note { background: var(--note); border-color: var(--note-line); color: var(--note-ink); }
.ok { background: var(--ok); border-color: var(--ok-line); color: var(--ok-ink); }
.warn { background: var(--warn); border-color: var(--warn-line); color: var(--warn-ink); }
.note b, .ok b, .warn b, .note strong, .ok strong, .warn strong { color: inherit; }
.note a, .ok a, .warn a { color: inherit; }
.tag {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  padding: 2px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); vertical-align: middle;
}

/* ── Permission cards ────────────────────────────────────────── */
.perms { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin: 14px 0; }
.perm { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow); }
.perm .icon { font-size: 24px; line-height: 1; margin-bottom: 8px; }
.perm h4 { margin: 0 0 4px; font-size: 16px; color: var(--ink); }
.perm .when { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.perm p { margin: 0; font-size: 14.5px; }

/* ── Facts list (overview) ───────────────────────────────────── */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.facts .item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.facts .item b { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 2px; }

/* ── Steps ───────────────────────────────────────────────────── */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 14px 0; }
.steps li {
  position: relative; padding: 12px 14px 12px 62px; margin: 10px 0;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
}
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 14px; top: 12px; width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  font-weight: 900; display: grid; place-items: center; box-shadow: 0 4px 10px rgba(79, 70, 229, .35);
}

/* ── Contact block ───────────────────────────────────────────── */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.contact .item { background: var(--brand-soft); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.contact .item b { display: block; color: var(--brand-ink); margin-bottom: 4px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .5px; }

/* ── Index page cards ────────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.doc {
  display: block; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s, border-color .15s;
}
.doc:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--brand); color: var(--ink); }
.doc .icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 22px;
  background: var(--brand-soft); color: var(--brand-ink); margin-bottom: 12px;
}
.doc h3 { margin: 0 0 6px; color: var(--ink); font-size: 18px; }
.doc p { margin: 0; color: var(--muted); font-size: 14.5px; }
.doc .go { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--brand); }

/* ── Footer ──────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); background: var(--card); }
footer .wrap {
  max-width: var(--max); margin: 0 auto; padding: 22px 20px;
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 14px; color: var(--muted);
}
footer a { color: var(--muted); }

/* ── Small screens ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .card { padding: 18px; }
  .toc ol { columns: 1; }
  .hero { padding: 30px 16px 26px; }
  main { padding: 20px 16px 48px; }
  table { font-size: 14px; }
}

/* ── Print ───────────────────────────────────────────────────── */
@media print {
  .docnav, .print-hide, .top { display: none; }
  body { background: #fff; color: #000; }
  .hero { background: #1e1b4b !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .card, .doc, .perm { box-shadow: none; break-inside: avoid; }
  a { color: inherit; }
  section { break-inside: avoid-page; }
}
