/* Kinokey website — shared styles (landing + legal pages).
   Brand identity: Inter, black #1A1A1A, violet #5B5FE2, backgrounds #FFFFFF / #FAFAF9.
   Single light look on purpose (brand), every color set explicitly. */
:root {
  --ink: #1A1A1A;
  --ink-soft: #55555F;
  --ink-mute: #85858F;
  --violet: #5B5FE2;
  --violet-dark: #4549C9;
  --violet-tint: #EEEFFC;
  --paper: #FFFFFF;
  --paper-alt: #FAFAF9;
  --band: #F1F1F8;
  --band-line: #E4E4F0;
  --line: #EAEAEC;
  --night: #1A1A1A;
  --night-ink: #FAFAF9;
  --night-soft: rgba(250, 250, 249, 0.62);
  --night-mute: rgba(250, 250, 249, 0.42);
  --night-line: rgba(250, 250, 249, 0.14);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Band above the sticky header on phones with a notch */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 101;
  background: var(--paper);
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

/* ---------- Header (stays visible while scrolling, phone included) ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: block; line-height: 0; }
.brand img { height: 30px; width: auto; aspect-ratio: 4078 / 1289; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.login-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
}
.login-link:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--violet);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.btn:hover { background: var(--violet-dark); }
.btn-small { height: 40px; padding: 0 18px; font-size: 15px; }

@media (max-width: 600px) {
  .site-header .wrap { height: 60px; }
  .brand img { height: 24px; }
  .header-actions { gap: 14px; }
  .login-link { font-size: 14px; }
  .btn-small { height: 36px; padding: 0 14px; font-size: 14px; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--night);
  color: var(--night-soft);
  font-size: 14px;
  padding-block: 48px 40px;
  border-top: 1px solid var(--night-line);
}
.site-footer .wrap { display: grid; gap: 14px; justify-items: center; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
.footer-brand img { height: 22px; width: auto; aspect-ratio: 4078 / 1289; }
.footer-sep { color: var(--night-mute); }
.site-footer a { color: var(--night-ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-links { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.footer-links button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--night-ink);
  cursor: pointer;
  font-size: 14px;
}
.footer-links button:hover { text-decoration: underline; }
.footer-tmdb { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; max-width: 560px; }
.footer-tmdb img { height: 14px; width: auto; aspect-ratio: 273.42 / 35.52; opacity: 0.85; }
.footer-copy { color: var(--night-mute); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1000;
  display: none;
  background: var(--night);
  color: var(--night-ink);
  padding: 16px var(--gutter-r) calc(16px + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
}
.cookie-banner.show { display: block; }
.cookie-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
}
.cookie-text { margin: 0; font-size: 14px; line-height: 1.5; color: var(--night-soft); flex: 1 1 260px; }
.cookie-text a { color: var(--night-ink); }
.cookie-buttons { display: flex; gap: 10px; }
.cookie-btn {
  height: 40px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.cookie-btn-reject { background: transparent; color: var(--night-ink); border: 1px solid var(--night-ink); }
.cookie-btn-accept { background: var(--violet); color: #FFFFFF; border: 1px solid var(--violet); }
@media (max-width: 600px) {
  .cookie-buttons { width: 100%; }
  .cookie-btn { flex: 1; }
}

/* ---------- Legal pages ---------- */
.legal { padding-block: 56px 80px; background: var(--paper); }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(30px, 5vw, 40px); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 8px; font-weight: 600; }
.legal h2 { font-size: 20px; letter-spacing: -0.01em; margin: 40px 0 10px; font-weight: 600; }
.legal p, .legal li { color: var(--ink-soft); }
.legal p { margin: 0 0 14px; }
.legal ul { padding-left: 22px; margin: 0 0 14px; }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--violet); }
