/* Quicklog Baby — Shared Legal Pages Stylesheet */

:root {
  --color-primary: #FF7B7B;
  --color-bg: #F8F8FC;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-border: #E0E0E8;
  --max-width: 720px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- Header ---- */

header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

.lang-switch {
  display: flex;
  gap: 0.5rem;
}

.lang-switch a {
  font-size: 0.875rem;
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  text-decoration: none;
  color: var(--color-text-light);
  transition: background-color 0.15s, color 0.15s;
}

.lang-switch a:hover,
.lang-switch a.active {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

/* ---- Main content ---- */

main {
  flex: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  width: 100%;
}

h1 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

p {
  margin-bottom: 1rem;
}

ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

/* ---- Landing page ---- */

.landing {
  text-align: center;
  padding-top: 4rem;
}

.landing h1 {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.landing .tagline {
  font-size: 1.125rem;
  color: var(--color-text-light);
  margin-bottom: 3rem;
}

.lang-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.lang-buttons a {
  display: inline-block;
  padding: 0.875rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #ffffff;
  background-color: var(--color-primary);
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.15s;
}

.lang-buttons a:hover {
  opacity: 0.85;
}

/* ---- Footer ---- */

footer {
  background-color: #ffffff;
  border-top: 1px solid var(--color-border);
  padding: 1.5rem;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--color-text-light);
  text-decoration: none;
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--color-text-light);
}

/* ---- Responsive ---- */

@media (max-width: 480px) {
  .landing h1 {
    font-size: 2rem;
  }

  .lang-buttons a {
    width: 100%;
    text-align: center;
  }

  h1 {
    font-size: 1.5rem;
  }
}
