/* Shared styles for legal pages (Privacy, Terms, Cookies).
   Matches the main Valiam Tech site visual language. */

:root{
  --accent: #0F2A5F;
  --bg: #fafafa;
  --surface: #ffffff;
  --ink-1: #0a0a0a;
  --ink-2: #1a1a1a;
  --ink-3: #4a4a4a;
  --ink-4: #737373;
  --ink-5: #a3a3a3;
  --line-1: rgba(10,10,10,0.08);
  --line-2: rgba(10,10,10,0.12);
  --line-3: rgba(10,10,10,0.18);
  --container: 820px;
  --gutter: clamp(20px, 4vw, 40px);
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body{
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink-2);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}
a{ color: var(--accent); text-decoration: none; }
a:hover{ text-decoration: underline; }

.container{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Nav (same as main site) */
.nav{
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav.is-scrolled{ border-bottom-color: var(--line-1); background: color-mix(in srgb, var(--bg) 92%, transparent); }
.nav-inner{
  max-width: 1180px;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 24px;
  padding-left: var(--gutter); padding-right: var(--gutter);
}
.wordmark{
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; letter-spacing: -0.01em; color: var(--ink-1); font-size: 16px;
}
.wordmark .mark{
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--accent);
  position: relative; flex: none; overflow: hidden;
}
.wordmark .mark::before{
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(135deg, transparent 0 38%, rgba(255,255,255,.22) 38% 42%, transparent 42% 100%),
    linear-gradient(135deg, transparent 0 58%, rgba(255,255,255,.14) 58% 62%, transparent 62% 100%);
}
.wordmark .mark::after{
  content: ""; position: absolute;
  left: 6px; bottom: 5px; width: 10px; height: 4px;
  border-radius: 1.5px; background: rgba(255,255,255,.95);
}
.nav-back{
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--ink-3);
  border-radius: 6px;
  transition: color .15s ease, background .15s ease;
  text-decoration: none;
}
.nav-back:hover{ color: var(--ink-1); background: var(--line-1); text-decoration: none; }
.nav-back svg{ width: 14px; height: 14px; }

/* Header */
.legal-header{
  padding: clamp(56px, 8vw, 96px) 0 clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--line-1);
  margin-bottom: clamp(40px, 5vw, 56px);
}
.legal-header .eyebrow{
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.02em;
  color: var(--ink-3); margin-bottom: 16px;
}
.legal-header .eyebrow .dot{
  width: 6px; height: 6px; border-radius: 999px; background: var(--accent);
}
.legal-header h1{
  font-size: clamp(34px, 5.5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: var(--ink-1);
  margin: 0;
  text-wrap: balance;
}
.legal-header .meta{
  margin-top: 18px;
  font-size: 14px;
  color: var(--ink-4);
  display: flex; gap: 18px; flex-wrap: wrap;
}
.legal-header .meta strong{ color: var(--ink-2); font-weight: 500; }

/* Content typography */
main.legal{
  padding-bottom: clamp(72px, 9vw, 120px);
}
.legal h2{
  font-size: clamp(20px, 2.5vw, 24px);
  letter-spacing: -0.015em;
  color: var(--ink-1);
  margin: 48px 0 12px;
  font-weight: 600;
  line-height: 1.25;
  text-wrap: balance;
}
.legal h2:first-of-type{ margin-top: 0; }
.legal h3{
  font-size: 16px;
  color: var(--ink-1);
  margin: 28px 0 8px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.legal p, .legal li{
  color: var(--ink-3);
  font-size: 15.5px;
  line-height: 1.65;
}
.legal p{ margin: 0 0 14px; }
.legal ul{
  margin: 0 0 16px;
  padding-left: 22px;
}
.legal ul li{ margin-bottom: 6px; }
.legal strong{ color: var(--ink-1); font-weight: 600; }

.info-box{
  background: var(--surface);
  border: 1px solid var(--line-1);
  border-radius: 12px;
  padding: 20px 22px;
  margin: 24px 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-2);
}
.info-box .row{ display: flex; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line-1); }
.info-box .row:first-child{ border-top: 0; padding-top: 0; }
.info-box .row .k{ flex: 0 0 140px; color: var(--ink-4); font-size: 13.5px; }
.info-box .row .v{ flex: 1; color: var(--ink-2); }
@media (max-width: 560px){
  .info-box .row{ flex-direction: column; gap: 2px; padding: 10px 0; }
  .info-box .row .k{ flex: none; }
}

/* Footer (same shape as main site) */
footer{
  border-top: 1px solid var(--line-1);
  background: var(--bg);
}
.footer-inner{
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px var(--gutter);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--ink-4);
}
.footer-legal .footer-line{ color: var(--ink-3); }
.footer-legal .footer-sub{ color: var(--ink-5); font-size: 12.5px; margin-top: 4px; }
.footer-inner .links{ display: flex; gap: 18px; flex-wrap: wrap; }
.footer-inner .links a{ color: var(--ink-4); }
.footer-inner .links a:hover{ color: var(--ink-1); text-decoration: none; }
.footer-inner .links a.is-current{ color: var(--ink-1); }
@media (max-width: 560px){
  .footer-inner{ flex-direction: column; gap: 14px; padding: 32px var(--gutter); }
  :root{ --gutter: 18px; }
}
