/* Shared styles for the Veylo landing page and legal pages.
   Layout: one left-aligned column, generous space, quiet chrome. */
:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --well: #eceef2;
  --ink: #15171c;
  --mute: #5b616c;
  --line: #dfe2e8;
  --accent: #5560c9;
  --accent-ink: #ffffff;
  --accent-soft: rgba(85, 96, 201, .14);
  --warn: #a86e00;
  --bad: #c93a40;
  --shadow: 0 1px 2px rgba(20, 24, 40, .06), 0 18px 50px -18px rgba(20, 24, 40, .22);
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme:dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0f11;
    --surface: #1a1b1f;
    --well: #131417;
    --ink: #ecedf0;
    --mute: #9a9fa9;
    --line: #26282d;
    --accent: #7d88e6;
    --accent-ink: #0e0f11;
    --accent-soft: rgba(125, 136, 230, .2);
    --warn: #f0b429;
    --bad: #ef5b60;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 50px -18px rgba(0, 0, 0, .7);
    color-scheme: dark
  }
}

:root[data-theme="dark"] {
  --bg: #0e0f11;
  --surface: #1a1b1f;
  --well: #131417;
  --ink: #ecedf0;
  --mute: #9a9fa9;
  --line: #26282d;
  --accent: #7d88e6;
  --accent-ink: #0e0f11;
  --accent-soft: rgba(125, 136, 230, .2);
  --warn: #f0b429;
  --bad: #ef5b60;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 50px -18px rgba(0, 0, 0, .7);
  color-scheme: dark
}

*,
*::before,
*::after {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  padding-inline: 20px
}

a {
  color: inherit
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px
}

.wrap {
  max-width: 1080px;
  margin-inline: auto
}

h1,
h2,
h3 {
  text-wrap: balance;
  margin: 0
}

p {
  margin: 0
}

/* header */
.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 1.125rem;
  letter-spacing: -.02em;
  text-decoration: none
}

.brand svg {
  color: var(--accent);
  flex: none
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding-inline: 20px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 600 .975rem/1 var(--font);
  text-decoration: none;
  white-space: nowrap;
  transition: filter .15s
}

.btn:hover {
  filter: brightness(1.08)
}

.btn.sm {
  height: 36px;
  padding-inline: 14px;
  font-size: .9rem
}

/* footer */
.foot {
  border-top: 1px solid var(--line);
  padding-block: 22px 34px;
  color: var(--mute);
  font-size: .9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px
}

.foot a {
  text-decoration: none
}

.foot a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px
}

/* legal pages */
.doc {
  max-width: 680px;
  padding-block: clamp(28px, 6vw, 60px) clamp(56px, 9vw, 96px)
}

.doc h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 560;
  letter-spacing: -.035em;
  line-height: 1.1;
  hyphens: auto;
  overflow-wrap: anywhere
}

.doc .sub {
  margin-top: 12px;
  color: var(--mute)
}

.doc h2 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.3;
  margin-top: 2.6rem
}

.doc h2+* {
  margin-top: .7rem
}

.doc p,
.doc li {
  line-height: 1.7
}

.doc p+p {
  margin-top: .9rem
}

.doc ul {
  margin: .9rem 0 0;
  padding-left: 1.25rem
}

.doc li+li {
  margin-top: .4rem
}

.doc a {
  text-decoration-color: var(--mute);
  text-underline-offset: 3px
}

.doc a:hover {
  color: var(--accent)
}

.facts {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 0;
  margin: 1.6rem 0 0;
  border-top: 1px solid var(--line)
}

.facts dt,
.facts dd {
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--line)
}

.facts dt {
  color: var(--mute);
  padding-right: 16px
}

.facts dd {
  overflow-wrap: anywhere
}

.facts address {
  font-style: normal
}

@media (max-width:560px) {
  .facts {
    grid-template-columns: minmax(0, 1fr)
  }

  .facts dt {
    padding: 14px 0 2px;
    border-bottom: 0
  }

  .facts dd {
    padding: 0 0 14px
  }
}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }

  .btn {
    transition: none
  }
}

/* language switch and header actions */
.top .r {
  display: flex;
  align-items: center;
  gap: 12px
}

.lang {
  color: var(--mute);
  text-decoration: none;
  font-size: .9rem
}

.lang:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px
}