:root {
  --tdb-black: #0c0102;
  --tdb-red: #ED1C24;
  --bg-primary: #FFFFFF;
  --bg-alt: #f5f4f4;
  --text-primary: #0c0102;
  --text-secondary: #4c4d4f;
  --text-muted: #767676;
  --border: rgba(12, 1, 2, 0.12);
  --font-display: "Bebas Neue", sans-serif;
  --font-body: "Open Sans", sans-serif;
  --max-page: 80rem;
  --radius-btn: 6px;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-alt);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
}
.site-header__inner {
  max-width: var(--max-page);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}
.site-header__logo { height: 40px; width: auto; }
.site-header__tool {
  font-size: 0.88rem;
  font-weight: 700;
}
.site-header__link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
}
.site-header__link:hover { color: var(--tdb-red); }

.legal {
  flex: 1;
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}
.breadcrumbs {
  padding: 1rem 0 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
}
.breadcrumbs a:hover { color: var(--tdb-red); }
.breadcrumbs span[aria-hidden="true"] { margin: 0 0.35rem; }

.legal__doc {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem 1.5rem 2.5rem;
  margin-top: 0.5rem;
}
.legal__doc h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}
.legal__meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.legal__callout {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--tdb-red);
  border-radius: 6px;
  padding: 1rem 1.1rem;
  margin-bottom: 1.5rem;
}
.legal__callout p + p { margin-top: 0.65rem; }
.legal__doc h2 {
  font-size: 1.15rem;
  margin: 1.75rem 0 0.65rem;
}
.legal__doc h3 {
  font-size: 1rem;
  margin: 1rem 0 0.4rem;
}
.legal__doc p,
.legal__doc li {
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 0.98rem;
}
.legal__doc p + p { margin-top: 0.85rem; }
.legal__doc ul {
  margin: 0.5rem 0 0.75rem 1.25rem;
}
.legal__doc li + li { margin-top: 0.35rem; }
.legal__doc a { color: var(--tdb-red); }

.site-footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 1.5rem 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.site-footer a { color: inherit; }
.site-footer__legal {
  margin-top: 0.45rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.site-footer__legal a {
  color: var(--text-secondary);
  font-weight: 600;
  text-decoration: none;
}
.site-footer__legal a:hover { color: var(--tdb-red); }

@media (max-width: 640px) {
  .site-header__tool { display: none; }
  .legal__doc { padding: 1.5rem 1.1rem 2rem; }
}
