/* Klarencia — Compliance Site Stylesheet
   Aesthetic: Belgian professional meets modern SaaS
   Matches the app's navy-and-purple design system */

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/outfit/outfit-variable-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/dm-sans/dm-sans-variable.woff2') format('woff2');
}

:root {
  --primary: #6155F5;
  --primary-light: #8976FD;
  --primary-dark: #4e44c4;
  --primary-50: #f0effe;
  --primary-100: #e0dffd;
  --accent: #c9a84c;
  --accent-light: #f5efd8;
  --text: #1B1C20;
  --text-muted: #5e5a6e;
  --text-light: #7e7a8e;
  --bg: #ffffff;
  --bg-subtle: #fafafb;
  --bg-muted: #f4f4f6;
  --border: #e8e7ec;
  --border-light: #d4d2db;
  --navy: #0F1B2D;
  --navy-light: #1A2D47;
  --navy-mid: #243B5A;
  --max-width: 780px;
  --nav-height: 60px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, 0.05);
  --shadow-md: 0 4px 16px rgba(15, 27, 45, 0.08);
  --shadow-lg: 0 8px 32px rgba(15, 27, 45, 0.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.72;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Navigation ─────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  height: var(--nav-height);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.nav-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo svg { height: 24px; width: auto; }
.nav-logo span {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  letter-spacing: 0.4px;
}

/* Nav links — works for both .nav-right and .nav-links */
.nav-right,
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-right a,
.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.1px;
}
.nav-right a:hover,
.nav-links a:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.nav-right a.active,
.nav-links a.active {
  color: #fff;
  background: rgba(97, 85, 245, 0.25);
}

.lang-sep {
  color: rgba(255,255,255,0.15);
  font-size: 14px;
  padding: 0 2px;
  user-select: none;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 1px;
  margin-left: 10px;
  padding-left: 12px;
  border-left: 1px solid rgba(255,255,255,0.12);
}

.lang-switch a {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  padding: 3px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  transition: color 0.2s, background 0.2s;
}
.lang-switch a:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.lang-switch a.current {
  color: #fff;
  background: rgba(97, 85, 245, 0.3);
}

/* ── Hero ───────────────────────────────────────────── */

.hero {
  background: var(--navy);
  padding: 72px 28px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle geometric texture — diagonal lines */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      120deg,
      transparent,
      transparent 80px,
      rgba(97, 85, 245, 0.03) 80px,
      rgba(97, 85, 245, 0.03) 81px
    );
  pointer-events: none;
}

/* Soft radial glow behind content */
.hero::after {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(97, 85, 245, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 4vw, 36px);
  color: #fff;
  line-height: 1.3;
  margin-bottom: 16px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
  letter-spacing: -0.2px;
}

.hero p,
.hero .subtitle {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

.hero-cta,
.cta-button {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  position: relative;
  z-index: 1;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(97, 85, 245, 0.3);
  letter-spacing: 0.2px;
}
.hero-cta:hover,
.cta-button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(97, 85, 245, 0.35);
}

/* ── Capabilities ───────────────────────────────────── */

.capabilities {
  max-width: 680px;
  margin: 0 auto;
  padding: 64px 28px 72px;
}

.capabilities h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--primary);
  margin-bottom: 36px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.cap-item {
  margin-bottom: 28px;
  padding-left: 20px;
  border-left: 2px solid var(--border);
  transition: border-color 0.2s;
}

.cap-item:hover {
  border-left-color: var(--primary);
}

.cap-item h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.4;
}

.cap-item p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Legal page layout ──────────────────────────────── */

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 28px 96px;
}

.page-header {
  margin-bottom: 48px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

/* Purple accent bar under header */
.page-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.page-header h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 3.8vw, 34px);
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.page-header .meta {
  font-size: 14.5px;
  color: var(--text-light);
  line-height: 1.5;
}

.page h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 19px;
  color: var(--text);
  margin-top: 48px;
  margin-bottom: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  letter-spacing: -0.1px;
}

.page h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.page h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  margin-top: 28px;
  margin-bottom: 8px;
}

.page p {
  margin-bottom: 14px;
  line-height: 1.72;
}

.page ul, .page ol {
  margin: 0 0 18px 0;
  padding-left: 24px;
}

.page li {
  margin-bottom: 8px;
  line-height: 1.65;
}

.page li::marker {
  color: var(--primary-light);
}

.page a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.page a:hover {
  border-bottom-color: var(--primary);
}

/* ── Tables ─────────────────────────────────────────── */

.page table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 20px 0 28px;
  font-size: 14px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.page th, .page td {
  text-align: left;
  padding: 12px 16px;
}

.page th {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-bottom: none;
}

.page td {
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.page tr:last-child td {
  border-bottom: none;
}

.page tbody tr:nth-child(even) {
  background: var(--bg-subtle);
}

.page tbody tr {
  transition: background 0.15s;
}

.page tbody tr:hover {
  background: var(--primary-50);
}

/* ── Callouts ───────────────────────────────────────── */

.callout {
  background: var(--primary-50);
  border-left: 3px solid var(--primary);
  border-radius: 0 8px 8px 0;
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text);
}

.callout strong {
  color: var(--text);
  font-weight: 600;
}

.callout-warn {
  background: var(--accent-light);
  border-left-color: var(--accent);
}

/* ── Contact cards ──────────────────────────────────── */

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 28px 0 44px;
}

.contact-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s;
  position: relative;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 12px 12px 0 0;
  opacity: 0;
  transition: opacity 0.2s;
}

.contact-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-light);
}

.contact-card:hover::before {
  opacity: 1;
}

.contact-card h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  margin-top: 0;
  margin-bottom: 8px;
}

.contact-card a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 14.5px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.contact-card a:hover { border-bottom-color: var(--primary); }
.contact-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 8px;
  margin-bottom: 0;
  line-height: 1.55;
}

/* ── Footer ─────────────────────────────────────────── */

.footer {
  background: var(--navy);
  padding: 40px 28px 36px;
  margin-top: 0;
}

.footer-inner {
  max-width: 1060px;
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer-links a {
  font-size: 13.5px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-links a:hover { color: rgba(255,255,255,0.9); }

.footer p {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 4px;
}

.footer p a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s;
}
.footer p a:hover { color: rgba(255,255,255,0.8); }
/* ── Page Hero (inner pages) ──────────────────────────── */

.page-hero {
  background: var(--navy);
  padding: 48px 28px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      120deg,
      transparent,
      transparent 80px,
      rgba(97, 85, 245, 0.03) 80px,
      rgba(97, 85, 245, 0.03) 81px
    );
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(97, 85, 245, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 3.5vw, 32px);
  color: #fff;
  line-height: 1.3;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
  letter-spacing: -0.2px;
}

.page-hero .meta {
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  position: relative;
  z-index: 1;
  line-height: 1.5;
}

/* ── Content sections (cards) ─────────────────────────── */

.content-section {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.content-section:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-light);
}

.content-section h2 {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.content-section h3 {
  margin-top: 20px;
}

.content-section h2 + h3 {
  margin-top: 14px;
}

.page-hero + .page {
  padding-top: 40px;
}


/* ── Language selector (root page) ──────────────────── */

.lang-selector {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 28px;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

/* Ambient glow */
.lang-selector::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(97, 85, 245, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

/* Subtle grid lines */
.lang-selector::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 120px,
      rgba(255,255,255,0.015) 120px,
      rgba(255,255,255,0.015) 121px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 120px,
      rgba(255,255,255,0.015) 120px,
      rgba(255,255,255,0.015) 121px
    );
  pointer-events: none;
}

.lang-selector svg {
  height: 44px;
  width: auto;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 24px rgba(97, 85, 245, 0.3));
}

.lang-selector .brand-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 30px;
  color: #fff;
  letter-spacing: 0.5px;
  margin-bottom: 56px;
  position: relative;
  z-index: 1;
}

.lang-selector nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 260px;
  position: relative;
  z-index: 1;
}

.lang-selector nav a {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  padding: 16px 36px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
  backdrop-filter: blur(8px);
}
.lang-selector nav a:hover {
  border-color: var(--primary);
  background: rgba(97, 85, 245, 0.15);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(97, 85, 245, 0.2);
}

/* ── 404 ────────────────────────────────────────────── */

.error-page {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 28px;
  background: var(--bg-subtle);
}

.error-page h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 96px;
  color: var(--primary);
  margin-bottom: 4px;
  letter-spacing: -2px;
  line-height: 1;
  opacity: 0.2;
}

.error-page p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.error-page p:last-of-type { margin-bottom: 28px; }

.error-page a {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 11px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.error-page a:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
}

/* ── Responsive ─────────────────────────────────────── */

@media (max-width: 768px) {
  /* Nav: stack logo above links, horizontal scroll for links */
  .nav { height: auto; }

  .nav-inner {
    padding: 10px 16px;
    flex-wrap: wrap;
    gap: 6px;
  }

  .nav-right,
  .nav-links {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    gap: 0;
    justify-content: flex-start;
    padding-bottom: 2px;
  }

  .nav-right::-webkit-scrollbar,
  .nav-links::-webkit-scrollbar { display: none; }

  .nav-right a,
  .nav-links a {
    font-size: 12.5px;
    padding: 5px 8px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .lang-switch {
    margin-left: auto;
    padding-left: 8px;
    flex-shrink: 0;
  }

  /* Hero */
  .hero { padding: 48px 20px 44px; }
  .hero h1 { font-size: 22px; }
  .hero p, .hero .subtitle { font-size: 15px; margin-bottom: 24px; }

  /* Capabilities */
  .capabilities { padding: 44px 20px; }
  .capabilities h2 { margin-bottom: 24px; }

  /* Legal pages */
  .page { padding: 32px 16px 64px; }
  .page-header { margin-bottom: 32px; padding-bottom: 20px; }
  .page-header h1 { font-size: 22px; }
  .page h2 { font-size: 17px; margin-top: 36px; padding-top: 20px; }
  .page h3 { font-size: 15px; }

  /* Tables: horizontal scroll */
  .page table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 13px;
    white-space: nowrap;
  }

  .page thead { display: table-header-group; }
  .page tbody { display: table-row-group; }
  .page tr { display: table-row; }
  .page th, .page td {
    display: table-cell;
    padding: 10px 12px;
    min-width: 100px;
  }

  /* Cards */
  .contact-cards { grid-template-columns: 1fr; gap: 12px; }

  /* Callouts */
  .callout { padding: 14px 16px; font-size: 14px; }

  /* Footer */
  .footer { padding: 28px 16px; }
  .footer-links { gap: 16px; margin-bottom: 14px; }
  .footer-links a { font-size: 13px; }

  /* Lang selector */
  .lang-selector { padding: 32px 20px; }
  .lang-selector .brand-name { font-size: 24px; margin-bottom: 40px; }
  .lang-selector nav { min-width: 200px; width: 100%; max-width: 300px; }
  .lang-selector nav a { padding: 14px 24px; font-size: 15px; }

  /* Page hero + content sections */
  .page-hero { padding: 32px 20px 28px; }
  .page-hero h1 { font-size: 20px; }
  .content-section { padding: 20px 18px; border-radius: 10px; margin-bottom: 14px; }
}

@media (max-width: 480px) {
  .nav-logo span { display: none; }

  .nav-right a,
  .nav-links a { font-size: 12px; padding: 4px 6px; }

  .lang-switch a { font-size: 11px; padding: 3px 5px; }

  .hero { padding: 36px 16px 32px; }
  .hero h1 { font-size: 20px; }
  .hero p, .hero .subtitle { font-size: 14px; }

  .page { padding: 24px 14px 56px; }
  .page p, .page li { font-size: 15px; }

  .cap-item { padding-left: 14px; }
  .cap-item h3 { font-size: 15px; }
  .cap-item p { font-size: 14px; }

  .error-page h1 { font-size: 64px; }

  .contact-card { padding: 18px; }
  .contact-card h3 { font-size: 14px; }
  .contact-card a { font-size: 14px; }
  .contact-card p { font-size: 13px; }

  .page-hero { padding: 28px 16px 24px; }
  .page-hero h1 { font-size: 18px; }
  .content-section { padding: 16px 14px; border-radius: 8px; }
}
