/* ADAL Studio — Secondary / Legal Pages */

:root {
  --font-primary: 'Plus Jakarta Sans', ui-sans-serif, system-serif, sans-serif;

  --color-ink: #000000;
  --color-pure-white: #ffffff;
  --color-parchment: #fdfdf7;
  --color-warm-sand: #f5f2de;
  --color-driftwood: #e7e3e1;
  --color-ash: #d3d3d3;
  --color-stone: #999999;
  --color-graphite: #666666;
  --color-sky-blue: #0096f7;
  --color-signal-orange: #ff4000;

  --radius-cards: 12px;
  --radius-buttons: 12px;
  --radius-inputs: 12px;
  --radius-pills: 24px;

  --shadow-subtle: rgba(0, 0, 0, 0.12) 0px 0.5px 2px 0px;
  --shadow-sm: rgba(0, 0, 0, 0.2) 0px 2px 4px 0px;

  --page-max-width: 1280px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.33;
  color: var(--color-ink);
  background: var(--color-parchment);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-sky-blue);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.75;
}

/* ── Navigation ── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-parchment);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.site-nav__inner {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-nav__logo img {
  height: 40px;
  width: auto;
}

.site-nav--dark {
  background: var(--color-ink);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.lang-toggle {
  flex-shrink: 0;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: var(--radius-pills);
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: transparent;
  color: var(--color-ink);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  letter-spacing: 0.02em;
}

.lang-toggle:hover {
  background: rgba(0, 0, 0, 0.04);
}

.site-nav--dark .lang-toggle {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--color-pure-white);
}

.site-nav--dark .lang-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.lang-active {
  font-weight: 500;
  opacity: 1;
}

/* ── Main content ── */

.page-main {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 80px 24px 120px;
}

.page-main--narrow {
  max-width: 800px;
}

.page-header {
  margin-bottom: 64px;
}

.page-title {
  font-weight: 300;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 16px;
}

.page-meta {
  font-weight: 400;
  font-size: 14px;
  color: var(--color-graphite);
  margin: 0;
}

.legal-section {
  margin-bottom: 48px;
}

.legal-section h2 {
  font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-ash);
}

.legal-section h3 {
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.01em;
  margin: 24px 0 8px;
  text-transform: uppercase;
}

.legal-section p {
  margin: 0 0 16px;
  color: var(--color-ink);
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul,
.legal-section ol {
  margin: 0 0 16px;
  padding-left: 1.5em;
}

.legal-section li {
  margin-bottom: 8px;
}

.legal-section li:last-child {
  margin-bottom: 0;
}

.legal-section a {
  word-break: break-all;
}

.contact-card {
  background: var(--color-warm-sand);
  border-radius: var(--radius-cards);
  padding: 24px 28px;
  box-shadow: var(--shadow-subtle);
  margin-top: 48px;
}

.contact-card p {
  margin: 0;
}

table {
  width: 100%;
  display: block;
  overflow-x: auto;
}

/* ── Footer ── */

.site-footer {
  background: var(--color-ink);
  color: var(--color-pure-white);
  padding: 64px 24px;
}

.site-footer__inner {
  max-width: var(--page-max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.site-footer__copyright {
  font-size: 14px;
  color: var(--color-graphite);
  margin: 0;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 4px;
  font-size: 14px;
  font-weight: 500;
}

.site-footer__links a {
  color: var(--color-stone);
}

.site-footer__links .sep {
  color: var(--color-graphite);
  user-select: none;
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  font-size: 14px;
  font-weight: 500;
}

.site-footer__social a {
  color: var(--color-pure-white);
}

.site-footer__contact {
  font-size: 14px;
  color: var(--color-graphite);
}

.site-footer__contact a {
  color: var(--color-stone);
}

/* ── 404 Page ── */

.page-404 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-ink);
  color: var(--color-pure-white);
}

.page-404__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}

.page-404__code {
  font-weight: 300;
  font-size: clamp(4rem, 15vw, 6rem);
  letter-spacing: -4px;
  line-height: 1;
  margin: 0 0 24px;
  overflow-wrap: break-word;
}

.page-404__subheading {
  font-weight: 300;
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.page-404__body {
  font-weight: 400;
  font-size: 18px;
  color: var(--color-stone);
  max-width: 28rem;
  margin: 0 0 40px;
}

.btn-primary {
  display: inline-block;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 14px;
  padding: 14px 28px;
  border-radius: var(--radius-buttons);
  background: var(--color-sky-blue);
  color: var(--color-pure-white);
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-subtle);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ── Responsive ── */

@media (max-width: 768px) {
  .site-nav__inner {
    padding: 0 16px;
  }

  .site-nav__logo img {
    height: 30px;
  }

  .lang-toggle {
    font-size: 11px;
    padding: 6px 11px;
  }

  .page-title {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  .page-main {
    padding: 56px 20px 80px;
  }

  .site-footer {
    padding: 48px 20px;
  }

  .site-footer__links {
    flex-direction: column;
    gap: 10px;
  }

  .site-footer__links .sep {
    display: none;
  }

  .site-footer__social {
    gap: 12px 20px;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    word-break: break-word;
  }

  .page-main {
    padding: 40px 16px 64px;
  }

  .legal-section h2 {
    font-size: 1.25rem;
    letter-spacing: -0.01em;
  }

  .contact-card {
    padding: 20px 18px;
  }
}
