/* Beast Benefits: shared styles for the legal pages (/privacy/ and /terms/).
   Same brand tokens as the landing page. Fonts are self-hosted, no third parties. */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Cyrillic is only fetched when a page uses it (the Bulgarian authority name on the privacy page). */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700 800; font-display: swap;
  src: url("/fonts/jakarta-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700 800; font-display: swap;
  src: url("/fonts/jakarta-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;
  --bg: #130f0f;
  --text: #f4efe6;
  --text-2: #cfc6b2;
  --muted: #9c927e;
  --line: rgba(244, 239, 230, .1);
  --line-2: rgba(244, 239, 230, .2);
  --card: rgba(244, 239, 230, .045);
  --burgundy: #6b1f2a;
  --burgundy-2: #8a2a38;
  --gold: #dfae4c;
  --gold-2: #f0c76e;
  --display: "Plus Jakarta Sans", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --btn-bg: linear-gradient(180deg, #f6d888, #dfae4c);
  --btn-fg: #1b1206;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.7 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--display); color: var(--text); text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: fixed; left: 12px; top: -64px; z-index: 100;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  background: var(--gold); color: #1b1206; border-radius: 10px; font-weight: 600; text-decoration: none;
  transition: top .2s;
}
.skip:focus { top: 12px; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
/* Reading column: about 72 characters of body text */
.col { width: min(72ch, 100% - 40px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
  font: 600 14px/1 Inter, sans-serif; text-decoration: none; white-space: nowrap;
  background: var(--btn-bg); color: var(--btn-fg);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 10px 26px -10px rgba(223, 174, 76, .55);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 14px 30px -10px rgba(223, 174, 76, .7); }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(19, 15, 15, .92); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
}
.site-head__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font: 800 18px/1 var(--display); letter-spacing: -.01em; text-decoration: none; white-space: nowrap;
}
.brand img { width: 34px; height: 34px; }
.site-head__actions { display: flex; align-items: center; gap: 6px; }
.nav-back {
  display: none; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px;
  color: var(--text-2); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: color .2s, background .2s;
}
.nav-back:hover { color: var(--text); background: rgba(244, 239, 230, .06); }
@media (min-width: 560px) { .nav-back { display: inline-flex; } }
@media (max-width: 560px) { .btn svg { display: none; } }
@media (max-width: 360px) {
  .brand { gap: 8px; font-size: 15px; }
  .btn { padding: 0 12px; }
}

/* ---------- Page ---------- */
main { position: relative; isolation: isolate; padding-bottom: clamp(56px, 8vw, 96px); }
main::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 460px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 90% at 12% 0%, rgba(125, 42, 54, .5), transparent 72%),
    radial-gradient(40% 70% at 92% 0%, rgba(223, 174, 76, .14), transparent 72%);
}

.doc-head { padding: clamp(48px, 8vw, 88px) 0 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; line-height: 1; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }
.doc-head h1 {
  margin-top: 18px; font-size: clamp(36px, 6vw, 56px); line-height: 1.04; letter-spacing: -.03em; font-weight: 800;
}
.meta { margin-top: 16px; font-size: 14.5px; color: var(--muted); }
.meta time { color: var(--text-2); }

/* "In short" box */
.summary {
  margin-top: 32px; padding: 22px 24px 24px; border: 1px solid var(--line-2); border-left: 3px solid var(--gold);
  border-radius: 16px; background: var(--card);
}
.doc .summary__h {
  margin: 0 0 12px; font: 700 12px/1 Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
}
.summary ul { margin: 0; }
.summary li { color: var(--text); }

/* Table of contents */
.toc { margin-top: 40px; }
.doc .toc__h {
  margin: 0 0 8px; font: 700 12px/1 Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.toc ol { columns: 2 260px; column-gap: 32px; }
.toc li { break-inside: avoid; }
.toc a {
  display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 10px; margin-inline: -10px;
  border-radius: 10px; color: var(--text-2); font-size: 15px; line-height: 1.35; text-decoration: none;
  transition: color .2s, background .2s;
}
.toc a:hover { color: var(--text); background: rgba(244, 239, 230, .06); }
.toc .n { flex: none; min-width: 1.7em; color: var(--gold); font-variant-numeric: tabular-nums; }

/* Sections */
.sec { margin-top: 48px; padding-top: 34px; border-top: 1px solid var(--line); }
.doc h2 { font-size: clamp(23px, 3vw, 29px); line-height: 1.2; letter-spacing: -.02em; font-weight: 800; }
.doc h2 .n { color: var(--gold); font-variant-numeric: tabular-nums; }
.doc h3 { margin-top: 28px; font-size: 17.5px; line-height: 1.3; font-weight: 700; letter-spacing: -.005em; }
.doc h2 + p, .doc h2 + ul { margin-top: 16px; }
.doc h3 + p, .doc h3 + ul { margin-top: 10px; }
.doc p { color: var(--text-2); }
.doc p + p, .doc ul + p, .doc p + ul { margin-top: 14px; }
.doc strong { color: var(--text); font-weight: 600; }
.doc ul { padding-left: 1.3em; list-style: disc; color: var(--text-2); }
.doc ul li::marker { color: var(--gold); }
.doc li + li { margin-top: 8px; }
.doc li > ul { margin-top: 8px; }
.doc a {
  color: var(--gold-2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  transition: color .2s;
}
.doc a:hover { color: #fff3d0; text-decoration-thickness: 2px; }

/* ---------- Footer ---------- */
.site-foot { padding: 36px 0 44px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; }
.foot-row ul { display: flex; flex-wrap: wrap; gap: 0 4px; margin-inline: -10px; }
.foot-row a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 10px;
  color: var(--text-2); text-decoration: none; transition: color .2s, background .2s;
}
.foot-row a:hover, .foot-row a[aria-current="page"] { color: var(--text); background: rgba(244, 239, 230, .06); }
.foot-row a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--gold); }
.note { margin-top: 16px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.6; color: var(--muted); max-width: 62ch; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Print: light background, black text ---------- */
@media print {
  :root {
    color-scheme: light;
    --bg: #fff; --text: #000; --text-2: #000; --muted: #333;
    --line: rgba(0, 0, 0, .25); --line-2: rgba(0, 0, 0, .4); --card: #fff;
    --gold: #000; --gold-2: #000;
  }
  html, body { background: #fff; color: #000; }
  body { font-size: 11pt; line-height: 1.5; }
  .skip, .site-head__actions, .toc, main::before { display: none; }
  .site-head { position: static; background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
  main { padding-bottom: 24px; }
  .doc-head { padding-top: 16px; }
  .doc h2 { break-after: avoid; }
  .sec { break-inside: auto; margin-top: 28px; padding-top: 20px; }
  .summary { border-left-width: 3px; break-inside: avoid; }
  .doc a { color: #000; }
  .doc a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .9em; overflow-wrap: anywhere; }
  .site-foot { padding-top: 20px; }
  .foot-row a { color: #000; }
}

/* Company details (Bulgarian Electronic Commerce Act, art. 4) */
.entity { display: grid; grid-template-columns: max-content 1fr; gap: 6px 22px; margin: 18px 0 4px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: rgba(244, 239, 230, .04); font-size: 15px; }
.entity dt { color: var(--muted); font-weight: 600; }
.entity dd { margin: 0; color: var(--text); }
@media (max-width: 560px) { .entity { grid-template-columns: 1fr; gap: 0; } .entity dd { margin-bottom: 10px; } }
@media print { .entity { border-color: #999; background: none; } .entity dd { color: #000; } }
