/* legal/_shared/base.css
 * Shared layout & components for brand legal pages.
 * Brand-specific values come from <brand>/brand.css via CSS custom properties.
 * See legal/_shared/README.md for the variable vocabulary. */

:root {
  /* fallbacks (brand.css overrides these) */
  --bg-color: #ffffff;
  --bg-pattern: none;
  --fg-color: #1a1a1a;
  --nav-bg: transparent;
  --nav-fg: #1a1a1a;
  --nav-accent: #2a9d8f;
  --footer-bg: #ffffff;
  --footer-fg: #555;
  --logo-url: none;
  --about-hero-url: none;
  --heading-font: Georgia, "Times New Roman", serif;
  --body-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  background-image: var(--bg-pattern);
  color: var(--fg-color);
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.65;
}

a { color: inherit; }

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  background: var(--nav-bg);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.site-nav .logo {
  display: block;
  width: 80px;
  height: 80px;
  background-image: var(--logo-url);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-nav nav {
  display: flex;
  gap: 2.5rem;
}

.site-nav nav a {
  color: var(--nav-fg);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.15s ease;
}

.site-nav nav a:hover,
.site-nav nav a.active {
  color: var(--nav-accent);
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

main h1 {
  font-family: var(--heading-font);
  font-size: 2.25rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 2rem;
  color: var(--fg-color);
}

main h2 {
  font-family: var(--heading-font);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--fg-color);
}

main p { margin: 0 0 1rem; }

main ul, main ol {
  padding-inline-start: 1.5rem;
  margin: 0 0 1rem;
}

main li { margin-bottom: 0.4rem; }

main a:not([class]) {
  color: var(--nav-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Products page grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.product-grid section {
  padding: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
}

.product-grid section h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.product-grid section p {
  font-size: 0.92rem;
  margin: 0;
  opacity: 0.85;
}

/* About page hero */
.about-hero {
  margin-top: 2.5rem;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-image: var(--about-hero-url);
  background-size: cover;
  background-position: center;
  border-radius: 8px;
}

/* Contact page block */
.contact-block {
  text-align: center;
  margin: 2rem auto 0;
  max-width: 540px;
  font-size: 1.05rem;
}

.contact-block .email {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--nav-accent);
  text-decoration: none;
}

.contact-block .email:hover { text-decoration: underline; }

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-fg);
  text-align: center;
  padding: 1.75rem 1rem;
  font-size: 0.875rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.site-footer a {
  color: var(--footer-fg);
  text-decoration: none;
  margin: 0 0.4rem;
  transition: color 0.15s ease;
}

.site-footer a:hover { color: var(--nav-accent); }

@media (max-width: 720px) {
  .site-nav {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
  }
  .site-nav .logo { width: 60px; height: 60px; background-position: center; }
  .site-nav nav {
    flex-wrap: wrap;
    gap: 1rem 1.25rem;
    justify-content: center;
    font-size: 0.8rem;
  }
  main { padding: 2rem 1.25rem 3rem; }
  main h1 { font-size: 1.75rem; }
  main h2 { font-size: 1.2rem; }
}
