/* =============================================
   LEGAL PAGES — /privacy, /cookies, /terms
   Tokens, nav and footer mirror index.html so
   these pages share the main site's look.
   ============================================= */

/* =============================================
   TOKENS
   ============================================= */
:root {
  --bg:           #0F2419;
  --card:         #163828;
  --mid:          #1A3C2E;
  --muted:        #2D6A4F;
  --accent:       #52B788;
  --light-accent: #95D5B2;
  --text:         #F0F4F1;
  --text-light:   #C8D4CC;
  --text-grey:    #6B7280;
  --border:       rgba(82,183,136,0.15);
  --nav-h:        72px;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  display: flex; flex-direction: column;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* =============================================
   NAVIGATION
   ============================================= */
#nav {
  position: fixed; top: 0; left: 0; right: 0; width: 100%;
  z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  overflow: visible;
  box-sizing: border-box;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
}
#nav.stuck {
  background: rgba(10,26,16,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(82,183,136,0.08);
}
.nav-logo { height: 34px; width: auto; object-fit: contain; }

.nav-links {
  display: flex; align-items: center; gap: 36px;
  overflow: visible;
  box-sizing: border-box;
}
.nav-links a {
  color: var(--text-light);
  font-size: 13.5px; font-weight: 400; letter-spacing: 0.01em;
  position: relative; padding-bottom: 2px;
  transition: color 0.25s ease;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

.btn-nav {
  background: var(--accent); color: #0F2419;
  font-size: 13px; font-weight: 500; letter-spacing: 0.04em;
  padding: 12px 28px; border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
  overflow: visible;
  position: relative;
  z-index: 1001;
  margin-left: 16px;
  display: inline-flex; align-items: center;
  transition: background 0.25s ease, transform 0.2s ease;
}
.btn-nav:hover { background: var(--light-accent); transform: translateY(-1px); }

/* Language selector — sits left of the Log In button */
.lang-select {
  appearance: none; -webkit-appearance: none;
  background: rgba(15,36,25,0.6);
  border: 1px solid rgba(82,183,136,0.3);
  border-radius: 3px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 400;
  padding: 9px 30px 9px 12px;
  margin-left: 16px;
  cursor: pointer;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2352B788' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color 0.25s ease;
  outline: none;
}
.lang-select:hover, .lang-select:focus { border-color: rgba(82,183,136,0.6); }
.lang-select option { background: #0F2419; color: var(--text); }

/* Hide Google Translate's own UI — we drive it from our dropdown */
#google_translate_element { display: none; }
.goog-te-banner-frame, .skiptranslate iframe { display: none !important; }
body { top: 0 !important; }
font[style] { background: transparent !important; box-shadow: none !important; }

/* Hamburger */
.hbg {
  display: none; flex-direction: column; gap: 5px;
  padding: 6px; background: none; border: none;
}
.hbg span {
  display: block; width: 22px; height: 1.5px; background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hbg.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hbg.open span:nth-child(2) { opacity: 0; }
.hbg.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
#mob-menu {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 899;
  background: rgba(9,22,15,0.98); backdrop-filter: blur(16px);
  padding: 28px clamp(20px,5vw,80px) 36px;
  display: flex; flex-direction: column; gap: 0;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
}
#mob-menu.open { transform: translateY(0); opacity: 1; visibility: visible; }
#mob-menu a {
  color: var(--text-light); font-size: 17px; font-weight: 300;
  padding: 16px 0;
  border-bottom: 1px solid rgba(82,183,136,0.08);
  transition: color 0.2s ease;
}
#mob-menu a:hover { color: var(--text); }
#mob-menu .btn-nav {
  margin-top: 20px; text-align: center; display: block;
  border-bottom: none; padding: 13px;
}

/* =============================================
   LEGAL DOCUMENT
   ============================================= */
.legal {
  flex: 1;
  padding: calc(var(--nav-h) + clamp(40px,7vw,88px)) clamp(20px,7vw,110px) clamp(64px,9vw,120px);
}
.legal-inner { max-width: 760px; margin: 0 auto; }

.eyebrow {
  display: block;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500;
  letter-spacing: 5px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.legal h1 {
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  font-weight: 400;
  font-size: clamp(44px,7vw,76px);
  color: var(--accent);
  line-height: 0.95;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.legal-updated {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 12.5px; color: var(--text-light);
  letter-spacing: 0.02em;
  margin-bottom: 32px;
}
.legal-updated span { display: block; color: var(--text-grey); margin-top: 4px; }

.legal p, .legal li {
  color: var(--text-light);
  font-size: 16px; font-weight: 300; line-height: 1.75;
  overflow-wrap: break-word;
}
.legal p { margin-bottom: 18px; }
.legal strong { color: var(--text); font-weight: 500; }
.legal em { color: var(--text-grey); font-style: normal; font-size: 0.9em; }

.legal a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(82,183,136,0.4);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.legal a:hover { color: var(--light-accent); text-decoration-color: var(--light-accent); }

.legal h2 {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: clamp(21px,2.6vw,26px);
  color: var(--text); line-height: 1.2;
  margin: 56px 0 18px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  scroll-margin-top: calc(var(--nav-h) + 8px);
}
.legal h3 {
  font-family: 'Inter', sans-serif; font-weight: 500;
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent);
  margin: 28px 0 12px;
}

.legal ul { margin: 0 0 20px; }
.legal ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
}
.legal ul li::before {
  content: ''; position: absolute; left: 2px; top: 0.72em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

/* Company details card */
.legal-meta {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 22px 26px;
  margin: 32px 0 0;
  display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px;
}
.legal-meta dt {
  font-size: 11.5px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-grey);
  padding-top: 3px;
}
.legal-meta dd {
  color: var(--text); font-size: 15px; font-weight: 400; line-height: 1.6;
  overflow-wrap: anywhere;
}

/* Contents */
.legal-toc {
  margin: 36px 0 0;
  padding: 22px 26px;
  border: 1px solid var(--border);
  border-radius: 4px;
}
.legal-toc-title {
  font-size: 11.5px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-grey);
  margin-bottom: 14px;
}
.legal-toc ol {
  list-style: none;
  columns: 2; column-gap: 32px;
}
.legal-toc li {
  font-size: 14.5px; line-height: 1.5;
  margin-bottom: 8px;
  break-inside: avoid;
}
.legal-toc a { color: var(--text-light); text-decoration: none; }
.legal-toc a:hover { color: var(--accent); }

/* Callouts */
.legal blockquote {
  background: var(--mid);
  border-left: 2px solid var(--accent);
  border-radius: 0 4px 4px 0;
  padding: 18px 22px;
  margin: 24px 0;
}
.legal blockquote p { color: var(--text); font-weight: 400; margin-bottom: 0; }

/* Links to the other policies */
.legal-related {
  margin-top: 64px; padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  font-size: 14px;
}
.legal-related span { color: var(--text-grey); }

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--bg);
  border-top: 1px solid rgba(82,183,136,0.1);
  padding: 52px clamp(20px,7vw,110px);
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; align-items: start;
}
.ft-logo { height: 30px; width: auto; margin-bottom: 10px; }
.ft-url { font-size: 11.5px; color: var(--text-grey); }
.ft-nav { display: flex; flex-direction: column; gap: 11px; }
.ft-nav a {
  color: var(--text-light); font-size: 13px; font-weight: 300;
  transition: color 0.2s ease;
}
.ft-nav a:hover { color: var(--accent); }
.ft-right { text-align: right; }
.ft-copy { font-size: 11.5px; color: var(--text-grey); margin-bottom: 12px; }
.ft-legal { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 18px; }
.ft-legal a {
  color: var(--text-light); font-size: 12px; font-weight: 300;
  transition: color 0.2s ease;
}
.ft-legal a:hover, .ft-legal a[aria-current="page"] { color: var(--accent); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 960px) {
  .nav-links { display: none; }
  #nav > .btn-nav { display: none; }
  .hbg { display: flex; }
  footer { grid-template-columns: 1fr; gap: 32px; }
  .ft-right { text-align: left; }
  .ft-legal { justify-content: flex-start; }
}
@media (max-width: 600px) {
  #nav { padding: 0 20px; }
  .legal-meta { grid-template-columns: 1fr; gap: 2px; padding: 20px; }
  .legal-meta dd { margin-bottom: 12px; }
  .legal-meta dd:last-child { margin-bottom: 0; }
  .legal-toc { padding: 20px; }
  .legal-toc ol { columns: 1; }
  .legal-toc li { margin-bottom: 0; }
  .legal-toc a { display: block; padding: 7px 0; }
  .legal h2 { margin-top: 44px; padding-top: 24px; }
  .legal blockquote { padding: 16px 18px; }
  .ft-legal { gap: 12px 20px; }
  .ft-legal a { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
