/* layout.css — header, footer, grid, breakpoints */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}

.site-header .header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  height: 100%;
  padding-inline: 1rem;
  max-width: 120rem;
  margin: 0 auto;
}
@media (min-width: 834px)  { .site-header .header-inner { padding-inline: 2rem; } }
@media (min-width: 1200px) { .site-header .header-inner { padding-inline: 3rem; } }

.site-header .brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #000;
}
.site-header .brand .brand-mark {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
}
.site-header .brand img { height: 1.25rem; width: auto; }
.site-header .brand .brand-logo {
  height: 3rem;
  width: auto;
  display: block;
}
@media (min-width: 834px) {
  .site-header .brand .brand-logo { height: 3.25rem; }
}

.site-header .nav {
  display: none;
  justify-content: center;
  gap: 1.75rem;
}
.site-header .nav a {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #000;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.site-header .nav a:hover,
.site-header .nav a.active { border-bottom-color: #000; }

@media (min-width: 834px) {
  .site-header .nav { display: flex; }
}

.site-header .header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.site-header .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  color: #000;
}
.site-header .icon-btn svg { width: 1rem; height: 1rem; }
.site-header .icon-btn img { width: 1rem; height: 1rem; }

.site-header .icon-btn.burger {
  width: 2.75rem;
  height: 2.75rem;
}
.site-header .icon-btn.burger img {
  width: 1.75rem;
  height: 1.75rem;
}

.lang-switcher {
  display: none;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
@media (min-width: 834px) {
  .lang-switcher { display: inline-flex; }
}
.lang-switcher a {
  padding: 0.25rem 0.375rem;
  color: var(--color-muted);
}
.lang-switcher a.active { color: #000; font-weight: 700; }
.lang-switcher .sep { color: var(--color-border); }

/* Mobile nav panel */
.mobile-nav {
  position: fixed;
  inset: var(--header-height) 0 0 0;
  background: #fff;
  z-index: 40;
  padding: 2rem 1.5rem;
  transform: translateX(-100%);
  transition: transform 0.3s var(--ease);
  overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav ul { display: flex; flex-direction: column; gap: 1rem; }
.mobile-nav a {
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mobile-lang {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}
.mobile-lang .lang-switcher { display: inline-flex; }

@media (min-width: 834px) {
  .mobile-nav { display: none; }
  .site-header .burger { display: none; }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: #fafafa;
  color: var(--color-muted);
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  margin-top: 4rem;
}
.site-footer .footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 834px) {
  .site-footer .footer-inner {
    grid-template-columns: 2fr 1fr 1fr;
    padding-inline: 2rem;
    gap: 3rem;
  }
}
@media (min-width: 1200px) {
  .site-footer .footer-inner { padding-inline: 3rem; }
}
.site-footer .footer-col { min-width: 0; }
.site-footer .footer-brand-mark {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #000;
  margin-bottom: 0.5rem;
}
.site-footer .footer-brand-logo {
  display: block;
  height: 2.25rem;
  width: auto;
  max-width: 100%;
  margin-bottom: 0.75rem;
}
.site-footer .footer-tagline {
  max-width: 22rem;
  font-weight: 300;
  line-height: 1.5;
}
.site-footer .footer-heading {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 0.875rem;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.site-footer a {
  color: var(--color-muted);
  text-decoration: none;
}
.site-footer a:hover { color: #000; text-decoration: underline; }
.site-footer .footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}
@media (min-width: 600px) {
  .site-footer .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}
.footer-legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  align-items: center;
  justify-content: center;
}
@media (min-width: 600px) { .footer-legal-nav { justify-content: flex-end; } }
.footer-legal-nav a {
  color: var(--color-muted);
  text-decoration: none;
}
.footer-legal-nav a:hover { color: #000; text-decoration: underline; }
.footer-legal-nav span { color: var(--color-muted); }

/* ---- Legal pages ---- */
.legal-page {
  max-width: 50rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 6rem;
}

.legal-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  align-items: center;
  margin-bottom: 2.5rem;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}
.legal-breadcrumb a {
  color: var(--color-muted);
  text-decoration: none;
}
.legal-breadcrumb a:hover { color: #000; text-decoration: underline; }
.legal-breadcrumb span { color: var(--color-border); }

.legal-page h1 {
  font-size: 1.625rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
}
@media (min-width: 834px) { .legal-page h1 { font-size: 2rem; } }

.legal-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--color-border-soft);
}
.legal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-section h2 {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #111;
  margin-bottom: 1rem;
}

.legal-section p {
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.8;
  color: #333;
  margin-bottom: 0.75rem;
}
.legal-section p:last-child { margin-bottom: 0; }

.legal-list {
  padding-left: 1.25rem;
  margin: 0.5rem 0 0;
}
.legal-list li {
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.8;
  color: #333;
  margin-bottom: 0.375rem;
}

/* Main content area */
main#content {
  display: block;
  min-height: calc(100vh - var(--header-height) - 5rem);
}

/* Generic grid */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.9375rem;
}
.grid-half { grid-column: 1 / span 6; }

/* Breadcrumb */
.breadcrumb {
  padding: 1rem 0 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.375rem; align-items: center; }
.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.375rem;
  color: var(--color-border);
}
.breadcrumb a:hover { color: #000; }
.breadcrumb [aria-current="page"] { color: #000; }
