/* ============================================================
   Shared styles for the standalone BeeTransfer legal pages
   (terms.html, privacy.html). Matches the landing system:
   warm honey-tinted dark, SF Rounded, honey accent. No CDN.
   ============================================================ */
:root {
  --bg: #16120c;
  --bg-deep: #100c07;
  --honey: #ffc22d;
  --honey-lift: #ffd66b;
  --ink: #1a1610;
  --cream: #fcf3d9;
  --text: #fbf1d8;
  --text-2: #c9bc9a;
  --surface: #221c12;
  --stroke: rgba(252, 243, 217, 0.1);
  --stroke-2: rgba(252, 243, 217, 0.17);
  --sans: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: radial-gradient(900px 600px at 50% -8%, rgba(255, 194, 45, 0.1), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--honey);
  outline-offset: 3px;
  border-radius: 8px;
}
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--honey);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 0 0 12px 0;
  font-weight: 700;
  z-index: 100;
}
.skip:focus {
  left: 0;
}

.wrap {
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  background: rgba(16, 12, 7, 0.78);
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  border-bottom: 1px solid var(--stroke);
}
.backlink {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  min-height: 44px;
  padding: 0 6px;
}
.backlink svg {
  width: 18px;
  height: 18px;
  flex: none;
  stroke: var(--honey);
}
.backlink:hover {
  color: var(--honey);
}
.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--honey);
  box-shadow: 0 0 10px rgba(255, 194, 45, 0.7);
  flex: none;
}

/* ---------- Language switch ---------- */
.lang {
  display: flex;
  background: rgba(252, 243, 217, 0.05);
  border: 1px solid var(--stroke-2);
  border-radius: 11px;
  overflow: hidden;
  flex: none;
}
.lang button {
  min-height: 40px;
  min-width: 44px;
  padding: 0 13px;
  background: transparent;
  color: var(--text-2);
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.03em;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.lang button:hover {
  color: var(--text);
}
.lang button[aria-pressed="true"] {
  background: var(--honey);
  color: var(--ink);
}

/* ---------- Document ---------- */
.doc {
  padding: clamp(40px, 7vh, 76px) 0 90px;
}
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--honey);
  margin: 0;
}
.doc h1 {
  font-size: clamp(30px, 6vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
  margin: 10px 0 8px;
}
.updated {
  color: var(--text-2);
  font-size: 14px;
  margin: 0 0 30px;
}
.doc h3 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 34px 0 10px;
  color: var(--text);
}
.doc p,
.doc li {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.78;
}
.doc ul {
  padding-left: 22px;
  margin: 10px 0;
}
.doc li {
  margin: 6px 0;
}
.doc strong {
  color: var(--text);
}
.placeholder {
  color: var(--honey-lift);
  font-weight: 600;
}
.doc a {
  color: var(--honey-lift);
}

/* ---------- Footer ---------- */
footer {
  text-align: center;
  padding: 36px 0 60px;
  color: var(--text-2);
  font-size: 14px;
  border-top: 1px solid var(--stroke);
}
footer a {
  color: var(--text-2);
  text-decoration: none;
}
footer a:hover {
  color: var(--honey);
}
.foot-links {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

/* ---------- Back to top ---------- */
.totop {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--honey);
  color: var(--ink);
  border: none;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), background-color 0.2s;
  z-index: 50;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.6);
}
.totop.show {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.totop:hover {
  background: var(--honey-lift);
}
.totop svg {
  width: 22px;
  height: 22px;
}
