/* ==========================================================================
   ADELL.WORK LEGAL PAGES — shared stylesheet (public/)
   Matching the Bauhaus design tokens of the main site.
   ========================================================================== */

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

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

body {
  background-color: #F5F0E8;
  color: #1A1A1A;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: #1A1A1A;
  line-height: 1.2;
}

a {
  color: #D2251C;
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: #1A1A1A;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

:focus-visible {
  outline: 2px solid #1A1A1A;
  outline-offset: 3px;
}

/* --- Top bar ----------------------------------------------------------- */
.legal-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: #F5F0E8;
  border-bottom: 2px solid #1A1A1A;
  transition: transform 0.2s ease-out;
}

.legal-topbar.legal-topbar-hidden {
  transform: translateY(-100%);
}

.legal-topbar-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
}

.legal-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #1A1A1A;
  text-decoration: none;
  font-family: 'Space Grotesk', -apple-system, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal-home {
  color: #1A1A1A;
  text-decoration: none;
  border: 2px solid #1A1A1A;
  font-family: 'Space Grotesk', -apple-system, system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  transition: background-color 0.16s ease-out, color 0.16s ease-out;
}

.legal-home:hover {
  background-color: #1A1A1A;
  color: #F5F0E8;
}

/* --- Content ----------------------------------------------------------- */
.legal-main {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) 1.25rem clamp(3rem, 7vw, 5rem);
}

.legal-kicker {
  font-family: 'Space Grotesk', -apple-system, system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555555;
}

.legal-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-top: 0.5rem;
}

.legal-title::after {
  content: '';
  display: block;
  width: 72px;
  height: 4px;
  background-color: #D2251C;
  margin-top: 0.75rem;
}

.legal-meta {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #555555;
}

.legal-section {
  margin-top: 2.5rem;
}

.legal-section h2 {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.legal-section h2 .num {
  color: #D2251C;
  font-weight: 800;
}

.legal-section h2 + p,
.legal-section h2 + ul,
.legal-section h2 + ol {
  margin-top: 0.625rem;
}

.legal-section ul,
.legal-section ol {
  padding-left: 1.35rem;
}

.legal-section li {
  margin-top: 0.375rem;
}

p,
li {
  max-width: 68ch;
}

strong {
  font-weight: 700;
}

.legal-note {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border: 2px solid #1A1A1A;
  background-color: #EBE5DB;
}

.legal-note p {
  max-width: none;
}

/* --- Footer ------------------------------------------------------------ */
.legal-footer {
  border-top: 2px solid #1A1A1A;
  background-color: #1A1A1A;
  color: #F5F0E8;
}

.legal-footer-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.85;
}

@media (max-width: 480px) {
  .legal-topbar-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}