/* YOUKOM legal pages – readable layout helpers alongside self-hosted Tailwind */

html {
  color-scheme: light only;
  background-color: #f9f9f9;
  scroll-behavior: smooth;
}

html,
body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  background-color: #f9f9f9 !important;
  color: #1a1c1c !important;
  font-family: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  position: relative;
  z-index: 1;
  min-height: 60vh;
  padding-top: 6rem;
  padding-bottom: 4rem;
}

@media (min-width: 768px) {
  main {
    padding-top: 8rem;
  }
}

/* Layout containers – match index.html; fallback if Tailwind config fails to load */
body > nav > div,
body > footer > div,
body > main > div {
  box-sizing: border-box;
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (min-width: 768px) {
  body > nav > div,
  body > footer > div,
  body > main > div {
    padding-left: 64px;
    padding-right: 64px;
  }
}

body > main .legal-content {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

.glass-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 50;
  background: rgba(249, 249, 249, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Nav chrome – works even if Tailwind 404s */
body > nav > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

body > nav a {
  color: #1a1c1c;
  text-decoration: none;
}

body > nav a:hover {
  color: #000000;
}

body > nav a:first-child {
  font-family: "Libre Caslon Text", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

body > nav a:last-child {
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #4c4546;
}

/* Footer chrome – brand left, Rechtliches right (stacks on small screens) */
body > footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid #cfc4c5;
  background-color: #ffffff !important;
}

body > footer > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (min-width: 768px) {
  body > footer > div {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  body > footer > div > div:first-child {
    grid-column: span 2;
  }
}

body > footer a {
  color: #4c4546;
  text-decoration: none;
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

body > footer a:hover {
  color: #1a1c1c;
}

body > footer .flex {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.legal-content h1 {
  font-family: "Libre Caslon Text", Georgia, serif;
  font-size: clamp(2rem, 5vw, 2.5rem);
  line-height: 1.2;
  color: #1a1c1c !important;
  margin-bottom: 1rem;
}

.legal-content h2 {
  font-family: "Libre Caslon Text", Georgia, serif;
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
  color: #1a1c1c !important;
}

.legal-content h3 {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
  color: #1a1c1c !important;
}

.legal-content p,
.legal-content li {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #4c4546 !important;
  margin-bottom: 1rem;
}

.legal-content strong {
  color: #1a1c1c !important;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content a {
  color: #1a1c1c !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: #000000 !important;
}

.legal-notice {
  background: #eeeeee;
  border: 1px solid #cfc4c5;
  border-radius: 0.5rem;
  padding: 16px 20px;
  margin-bottom: 2rem;
}

.legal-notice p {
  font-size: 0.875rem;
  margin: 0;
  color: #4c4546 !important;
}

.placeholder {
  background: rgba(0, 0, 0, 0.06);
  padding: 2px 6px;
  border-radius: 0.25rem;
  font-family: ui-monospace, monospace;
  font-size: 0.875rem;
  color: #1a1c1c !important;
}
