/* Anyvoc — shared styles. Marine palette mirrors constants/theme.ts. */

/* Inter font, self-hosted (variable woff2). Files cover weights 300–800. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 800;
  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: 300 800;
  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;
}

:root {
  --bg: #050d1a;
  --bg-mid: #0a1628;
  --surface: #0f1f3d;
  --primary: #1c6fff;
  --primary-glow: rgba(30, 111, 255, 0.25);
  --primary-soft: rgba(28, 111, 255, 0.15);
  --text: #eaf0ff;
  --text-sub: rgba(180, 200, 255, 0.65);
  --glass-bg: rgba(15, 35, 80, 0.55);
  --glass-border: rgba(100, 150, 255, 0.2);
  --font-stack: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(28, 111, 255, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(28, 111, 255, 0.10) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-mid) 50%, var(--bg) 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-stack);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}
a:hover,
a:focus-visible {
  opacity: 0.8;
}

/* ---------- Page header (legal pages) ---------- */

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
  gap: 1rem;
}

.page-header .brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-weight: 600;
  font-size: 1.1rem;
}
.page-header .brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: block;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}
.lang-toggle a {
  color: var(--text-sub);
  font-weight: 500;
}
.lang-toggle a.active {
  color: var(--primary);
  font-weight: 600;
}
.lang-toggle .sep {
  color: var(--text-sub);
  opacity: 0.3;
}

/* ---------- Hero (homepage) ---------- */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  animation: 1.5s ease-out fadeIn;
}

.logo-container {
  max-width: 200px;
  width: 100%;
  margin-bottom: 2rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow:
    0 10px 30px var(--primary-glow),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  padding: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.logo-container img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.hero h1 {
  font-weight: 800;
  font-size: 3.5rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
}

.tagline {
  font-weight: 300;
  font-size: 1.5rem;
  opacity: 0.9;
  margin-bottom: 3rem;
  max-width: 600px;
  color: var(--text);
}

.status-badge {
  display: inline-block;
  padding: 10px 24px;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  background: var(--primary-soft);
  box-shadow: 0 0 20px var(--primary-glow);
}

/* ---------- Legal content ---------- */

.legal {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 1rem 2rem 4rem;
  line-height: 1.65;
}

.legal h1 {
  font-weight: 800;
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #ffffff 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.01em;
}

.legal .lead {
  color: var(--text-sub);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.legal h2 {
  font-weight: 700;
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.legal h3 {
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.legal p {
  margin-bottom: 1rem;
  color: var(--text);
}

.legal ul,
.legal ol {
  margin: 0 0 1rem 1.5rem;
}
.legal li {
  margin-bottom: 0.4rem;
}

.legal address {
  font-style: normal;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  display: inline-block;
}

.legal blockquote {
  border-left: 3px solid var(--primary);
  padding: 0.5rem 1rem;
  margin: 1rem 0;
  background: var(--primary-soft);
  border-radius: 0 8px 8px 0;
  color: var(--text);
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
}
.legal th,
.legal td {
  padding: 0.6rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}
.legal th {
  background: rgba(28, 111, 255, 0.1);
  font-weight: 600;
}
.legal tr:last-child td {
  border-bottom: none;
}

.legal hr {
  border: none;
  border-top: 1px solid var(--glass-border);
  margin: 2rem 0;
}

.legal code {
  background: rgba(28, 111, 255, 0.12);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-sub);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.back-link:hover {
  color: var(--primary);
}

/* ---------- Footer ---------- */

footer {
  padding: 4rem 2rem 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-sub);
  margin-top: auto;
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.footer-inner > p {
  opacity: 0.85;
}

.footer-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}
.footer-links a {
  color: var(--text-sub);
  text-decoration: none;
  font-weight: 500;
}
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--primary);
  opacity: 1;
}

.lang-picker {
  font-size: 0.8rem;
  opacity: 0.85;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.lang-picker a {
  color: var(--text-sub);
  text-decoration: none;
}
.lang-picker a:hover,
.lang-picker a:focus-visible {
  color: var(--primary);
  opacity: 1;
}
.lang-picker .sep {
  opacity: 0.3;
}
.lang-picker a.active {
  color: var(--primary);
  opacity: 1;
  font-weight: 600;
}

/* ---------- Responsive ---------- */

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .tagline {
    font-size: 1.2rem;
  }
  .legal h1 {
    font-size: 1.75rem;
  }
  .legal h2 {
    font-size: 1.2rem;
  }
  .legal h3 {
    font-size: 1.05rem;
  }
  .page-header {
    padding: 1rem 1.25rem;
  }
  .legal {
    padding: 0.5rem 1.25rem 3rem;
  }
}
