/* Help centre and legal pages for storaq.app, in the style of getstoraq.com.
   Fonts and icons come from /assets, shared with the landing page. */
@font-face { font-family: 'League Spartan'; src: url('/assets/LeagueSpartan-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'League Spartan'; src: url('/assets/LeagueSpartan-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'League Spartan'; src: url('/assets/LeagueSpartan-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'League Spartan'; src: url('/assets/LeagueSpartan-ExtraBold.ttf') format('truetype'); font-weight: 800; font-display: swap; }

:root {
  --brand: #e43f6f;
  --brand-deep: #b92a59;
  --bg: #f6f6f9;
  --card: #ffffff;
  --text: #111111;
  --muted: #6b6b76;
  --line: #ececf1;
  --danger: #ff3b30;
  --shadow: 0 1px 2px rgba(20, 10, 30, .04), 0 8px 24px rgba(20, 10, 30, .06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --card: #1c1c1e;
    --text: #ffffff;
    --muted: #9a9aa3;
    --line: #2c2c2e;
    --danger: #ff6961;
    --shadow: none;
  }
  .logo-light { display: none; }
  .logo-dark { display: block !important; }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'League Spartan', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); font-weight: 500; text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.topbar img { height: 24px; width: auto; }
.logo-dark { display: none; }
.topbar nav { display: flex; gap: 20px; font-size: 16px; }
.topbar nav a { color: var(--muted); font-weight: 700; }
.topbar nav a:hover, .topbar nav a[aria-current="page"] { color: var(--text); text-decoration: none; }
.topbar nav { align-items: center; }
.langs { display: flex; background: var(--card); border-radius: 10px; padding: 3px; box-shadow: var(--shadow); }
.topbar .langs a { font-size: 13px; padding: 4px 8px; border-radius: 7px; }
.topbar .langs a[aria-current="true"] { background: var(--brand); color: #fff; }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; padding: 56px 0 72px; }
.hero::before, .hero::after { content: ''; position: absolute; border-radius: 50%; background: #fff; pointer-events: none; }
.hero::before { width: 420px; height: 420px; top: -200px; left: -140px; opacity: .14; }
.hero::after { width: 260px; height: 260px; bottom: -150px; right: -40px; opacity: .1; }
.hero .wrap { position: relative; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; background: rgba(255,255,255,.18); border-radius: 99px; padding: 6px 12px; margin-bottom: 16px; }
h1 { font-size: clamp(34px, 6vw, 52px); line-height: 1.05; font-weight: 800; letter-spacing: -.5px; }
.hero p { margin-top: 10px; opacity: .9; }
.search { margin-top: 26px; position: relative; }
.search input { width: 100%; font: inherit; font-size: 17px; border: 0; border-radius: 16px; padding: 16px 18px 16px 50px; background: #fff; color: #111; box-shadow: 0 10px 30px rgba(0,0,0,.15); outline: none; }
.search input:focus-visible { box-shadow: 0 0 0 4px rgba(255,255,255,.45), 0 10px 30px rgba(0,0,0,.15); }
.search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: #8e8e93; }

main { padding: 0 0 24px; }
.lift { margin-top: -36px; position: relative; }

/* Cards and sections */
.card { background: var(--card); border-radius: 22px; padding: 24px; box-shadow: var(--shadow); margin-bottom: 16px; }
.section-title { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 800; margin: 36px 0 12px; }
main > .section-title:first-child { margin-top: 32px; }
.section-title .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: color-mix(in srgb, var(--brand) 14%, transparent); }

/* Guides: one per question */
.guides { background: var(--card); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.guide { border-top: 1px solid var(--line); }
.guide:first-child { border-top: 0; }
.guide summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-weight: 700; font-size: 18px; }
.guide summary::-webkit-details-marker { display: none; }
.guide summary::after { content: '+'; color: var(--brand); font-size: 24px; line-height: 1; flex: none; transition: transform .2s ease; }
.guide[open] summary::after { transform: rotate(45deg); }
.guide summary:hover { background: color-mix(in srgb, var(--brand) 5%, transparent); }
.guide .body { padding: 0 22px 20px; color: var(--muted); }
.guide .body p + p, .guide .body p + ol, .guide .body ol + p { margin-top: 10px; }
.guide strong { color: var(--text); font-weight: 700; }
.tip { margin-top: 12px; font-size: 16px; background: color-mix(in srgb, var(--brand) 8%, transparent); border-radius: 12px; padding: 10px 14px; color: var(--text); }

/* Numbered steps */
.steps { list-style: none; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-left: 40px; margin: 10px 0; color: var(--muted); }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 14px; font-weight: 800; display: grid; place-items: center; }

.empty { display: none; text-align: center; color: var(--muted); padding: 28px; }

/* Danger */
.guide.danger summary { color: var(--danger); }
.guide.danger summary::after { color: var(--danger); }

/* Contact and legal */
.contact { display: flex; gap: 18px; align-items: center; margin-top: 36px; }
.contact .ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; background: linear-gradient(135deg, var(--brand), var(--brand-deep)); flex: none; }
.contact h2 { font-size: 21px; font-weight: 800; }
.contact p { color: var(--muted); font-size: 17px; }
.legal-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.legal-links a { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 700; }
.legal-links a:hover { text-decoration: none; transform: translateY(-1px); }
.legal-links span.arrow { margin-left: auto; color: var(--muted); }

/* Legal documents */
.doc { padding: 32px; }
.doc h2 { font-size: 21px; font-weight: 800; margin: 28px 0 8px; }
.doc h2:first-of-type { margin-top: 20px; }
.doc h3 { font-size: 18px; font-weight: 700; margin: 18px 0 4px; color: var(--text); }
.doc em { font-style: normal; font-weight: 700; color: var(--text); }
.doc p + p { margin-top: 8px; }
.doc .summary { background: color-mix(in srgb, var(--brand) 8%, transparent); border-radius: 16px; padding: 18px 20px; margin-bottom: 8px; }
.doc .summary h2 { margin: 0 0 6px; font-size: 18px; }
.doc .summary li { color: var(--text); }
.doc h2[id] { scroll-margin-top: 80px; }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--text); }
.doc ul { padding-left: 22px; margin: 8px 0; }
.doc li { margin: 6px 0; }
.updated { margin-top: 8px; opacity: .85; font-size: 16px; }
.back { display: inline-flex; gap: 6px; color: rgba(255,255,255,.9); font-weight: 700; margin-bottom: 18px; font-size: 16px; }
.back:hover { color: #fff; text-decoration: none; }

footer { padding: 40px 0 56px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer nav { display: flex; gap: 20px; }
footer a { color: var(--muted); font-weight: 500; }

@media (max-width: 600px) {
  .legal-links { grid-template-columns: 1fr; }
  .doc { padding: 22px; }
  .contact { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
