/* Shared styling for the standalone static pages (auth bridge, support, legal).
   These live outside the React bundle, so the design tokens from src/index.css
   are mirrored here deliberately. Keep the two in sync when the brand changes. */

:root {
  --bg: #0a0b14;
  --card: #161930;
  --card-border: #262a45;
  --text: #eef0f8;
  --muted: #9aa0bf;
  --accent: #6d5efc;
  --accent-2: #2bd2ff;
  --live: #38ef7d;
  --maxw: 720px;
  --radius: 18px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 700px at 80% -10%, #1c1f4055 0%, transparent 60%),
    radial-gradient(900px 600px at -10% 10%, #2bd2ff1a 0%, transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.25rem 3rem;
}

a {
  color: var(--accent-2);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 1.75rem;
  color: var(--text);
  text-decoration: none;
}

.brand__logo {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  font-size: 1.1rem;
}

img.brand__logo {
  background: none;
  object-fit: contain;
}

.card {
  width: 100%;
  max-width: var(--maxw);
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.25rem;
}

.card--narrow {
  max-width: 460px;
  text-align: center;
}

.card--doc {
  max-width: 880px;
}

.card--doc h1 {
  font-size: 1.5rem;
}

.card--doc h2 {
  margin-top: 2.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--card-border);
  font-size: 1.15rem;
}

.card--doc p,
.card--doc li {
  text-align: justify;
}

.card--doc p.foot {
  text-align: center;
}

.doc__meta {
  margin: 0 0 0.2rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-2);
}

h1 {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h2 {
  margin: 2rem 0 0.6rem;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

h3 {
  margin: 1.4rem 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--accent-2);
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.lead {
  font-size: 1.02rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #0a0b14;
}

.btn--ghost {
  background: transparent;
  border-color: var(--card-border);
  color: var(--text);
}

.btn + .btn {
  margin-top: 0.7rem;
}

.stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.1rem;
  margin-top: 1.5rem;
}

.spinner {
  width: 34px;
  height: 34px;
  margin: 0.5rem auto 1.25rem;
  border-radius: 50%;
  border: 3px solid var(--card-border);
  border-top-color: var(--accent-2);
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation-duration: 3s;
  }
}

.status {
  min-height: 1.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.status--error {
  color: #ff8a8a;
}

.hidden {
  display: none;
}

.foot {
  margin-top: 2rem;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

ul {
  color: var(--muted);
  padding-left: 1.15rem;
}

li {
  margin-bottom: 0.4rem;
}

/* Long legal words / email addresses must never push the page wider. */
.card {
  overflow-wrap: break-word;
}

.doc__note {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--card-border);
  font-size: 0.88rem;
}

/* Tables (payment terms). The wrapper scrolls sideways on narrow screens so
   the page body itself never does. */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 1.25rem;
  border: 1px solid var(--card-border);
  border-radius: 12px;
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.table-wrap th,
.table-wrap td {
  padding: 0.7rem 1rem;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--card-border);
  color: var(--muted);
}

.table-wrap th {
  color: var(--text);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.03);
}

.table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

/* Legal hub: one tappable row per policy. */
.policy-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.policy-list li {
  margin: 0;
}

.policy-list__item {
  position: relative;
  display: block;
  padding: 0.95rem 2.6rem 0.95rem 1.1rem;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
  min-height: 44px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.policy-list__item::after {
  content: "›";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--accent-2);
}

.policy-list__item:hover,
.policy-list__item:focus-visible {
  border-color: var(--accent-2);
  background: rgba(43, 210, 255, 0.06);
}

.policy-list__title {
  display: block;
  font-weight: 700;
  color: var(--text);
}

.policy-list__desc {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted);
}

@media (max-width: 480px) {
  body {
    padding: 1.25rem 1rem 2rem;
  }

  .card {
    padding: 1.5rem 1.15rem;
  }

  h1 {
    font-size: 1.5rem;
  }
}
