/* Shared styles for privacy-policy.html and terms.html */
:root {
  --primary: #3F37D1;
  --primary-dark: #2B24A6;
  --primary-deep: #1D1873;
  --secondary: #FCE16F;
  --ink: #1B1A33;
  --muted: #5E5D7A;
  --line: #E7E6F5;
  --soft: #F5F4FF;
  --white: #FFFFFF;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--white); line-height: 1.75; overflow-x: hidden; }
a { color: var(--primary); }
img { display: block; max-width: 100%; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* header */
.top { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.94); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--primary-deep); text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.brand b { color: var(--primary); }
.top nav { display: flex; align-items: center; gap: 24px; font-size: 14.5px; font-weight: 500; }
.top nav a { color: var(--ink); text-decoration: none; }
.top nav a:hover { color: var(--primary); }
.top nav a.active { color: var(--primary); font-weight: 600; }
.top nav .btn { background: var(--primary); color: var(--white); padding: 9px 18px; border-radius: 999px; font-weight: 600; }
.top nav .btn:hover { background: var(--primary-dark); color: var(--white); }

/* page hero */
.page-hero {
  color: var(--white); padding: 70px 0 64px; position: relative; overflow: hidden;
  background:
    radial-gradient(700px 320px at 90% -20%, rgba(252,225,111,.28), transparent 60%),
    linear-gradient(135deg, var(--primary), var(--primary-deep));
}
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1.2px, transparent 1.2px); background-size: 24px 24px; }
.page-hero .container { position: relative; }
.crumbs { font-size: 13.5px; color: rgba(255,255,255,.75); }
.crumbs a { color: var(--secondary); text-decoration: none; }
.page-hero h1 { font-size: clamp(32px, 5vw, 50px); font-weight: 800; letter-spacing: -1px; line-height: 1.15; margin: 10px 0 12px; }
.page-hero p { max-width: 640px; color: rgba(255,255,255,.85); }
.meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.meta span { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); padding: 6px 14px; border-radius: 999px; font-size: 13px; }
.meta b { color: var(--secondary); font-weight: 600; }

/* layout */
.layout { display: grid; grid-template-columns: 270px 1fr; gap: 56px; padding: 60px 0 90px; align-items: start; }
.toc { position: sticky; top: 100px; background: var(--soft); border-radius: 20px; padding: 22px 18px; max-height: calc(100vh - 130px); overflow: auto; }
.toc h2 { font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--primary); margin: 0 6px 10px; }
.toc ol { list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 10px; padding: 7px 10px; border-radius: 10px; font-size: 14px; color: var(--muted); text-decoration: none; line-height: 1.4; }
.toc a::before { content: counter(toc, decimal-leading-zero); font-weight: 700; color: var(--primary); font-size: 12px; padding-top: 2px; }
.toc a:hover, .toc a.on { background: var(--white); color: var(--ink); }

/* content */
.doc { min-width: 0; }
.doc .intro { font-size: 16.5px; color: var(--muted); padding-bottom: 28px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.doc section { padding-top: 30px; }
.doc h2 { font-size: 23px; font-weight: 700; letter-spacing: -.3px; margin-bottom: 12px; display: flex; gap: 12px; align-items: baseline; }
.doc h2 .n { flex: none; font-size: 14px; font-weight: 700; color: var(--primary-deep); background: var(--secondary); border-radius: 8px; padding: 1px 9px; }
.doc h3 { font-size: 17px; font-weight: 600; margin: 18px 0 6px; }
.doc p { color: #3d3c58; margin-bottom: 12px; }
.doc ul { margin: 6px 0 14px 0; padding-left: 0; list-style: none; }
.doc ul li { position: relative; padding-left: 24px; margin-bottom: 8px; color: #3d3c58; }
.doc ul li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 8px; height: 8px; border-radius: 3px; background: var(--primary); }
.doc strong { color: var(--ink); }

.table-wrap { overflow-x: auto; margin: 10px 0 16px; border: 1px solid var(--line); border-radius: 16px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
th, td { text-align: left; padding: 12px 16px; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: var(--soft); font-weight: 600; color: var(--primary-deep); }
tr:last-child td { border-bottom: 0; }
td { color: #3d3c58; }

.note { background: #FFF9DD; border: 1px solid #F6E08A; border-radius: 16px; padding: 16px 20px; margin: 14px 0; color: #5a4a00; font-size: 15px; }
.note strong { color: #4a3d00; }
.callout { background: var(--soft); border-left: 4px solid var(--primary); border-radius: 0 16px 16px 0; padding: 16px 20px; margin: 14px 0; }
.callout p:last-child { margin-bottom: 0; }

.steps-list { counter-reset: s; list-style: none; margin: 10px 0 16px; }
.steps-list li { counter-increment: s; position: relative; padding-left: 44px; margin-bottom: 12px; color: #3d3c58; }
.steps-list li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 10px; background: var(--primary); color: var(--secondary); font-weight: 700; font-size: 14px; display: grid; place-items: center; }

.contact-card { margin-top: 14px; background: linear-gradient(135deg, var(--primary), var(--primary-deep)); color: var(--white); border-radius: 20px; padding: 24px 26px; display: grid; gap: 8px; }
.contact-card p { color: rgba(255,255,255,.88); margin: 0; }
.contact-card strong { color: var(--secondary); }
.contact-card a { color: var(--white); font-weight: 600; }

/* footer */
footer { background: #120F45; color: rgba(255,255,255,.72); padding: 34px 0; font-size: 13.5px; }
footer .container { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
footer a { color: rgba(255,255,255,.85); text-decoration: none; }
footer a:hover { color: var(--secondary); }
footer .links { display: flex; flex-wrap: wrap; gap: 22px; }
footer b { color: var(--secondary); font-weight: 600; }

@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; gap: 30px; padding-top: 34px; }
  .toc { position: static; max-height: none; }
}
@media (max-width: 640px) {
  .top nav a:not(.btn) { display: none; }
  .page-hero { padding: 50px 0 46px; }
  .doc h2 { font-size: 20px; }
}
@media print {
  .top, .toc, footer { display: none; }
  .page-hero { background: none; color: var(--ink); padding: 0 0 20px; }
  .page-hero p, .crumbs, .meta span { color: var(--ink); }
  .layout { display: block; padding: 0; }
}
