:root {
  --bg: #141414;
  --panel: #111111;
  --panel-soft: #151515;
  --text: #ffffff;
  --muted: #8c8c8c;
  --line: #363636;
  --accent: #4ecac2;
  --btn-bg: #ffffff;
  --btn-border: #dddddd;
  --btn-text: #000000;
  --btn-bg-hover: #eeeeee;
  --btn-border-hover: #cccccc;
  --bb-site-gutter: clamp(20px, 3vw, 56px);
}

html[data-theme="white"] {
  --bg: #f4f6f8;
  --panel: #ffffff;
  --panel-soft: #eef2f5;
  --text: #151d24;
  --muted: #5f6972;
  --line: #d6dde3;
  --accent: #0f7f88;
  --btn-bg: #15232d;
  --btn-border: #15232d;
  --btn-text: #ffffff;
  --btn-bg-hover: #203340;
  --btn-border-hover: #203340;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Lato", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.65;
}

a {
  color: var(--text);
  text-decoration: none;
}

.container {
  margin-left: auto;
  margin-right: auto;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  width: calc(100% - (2 * var(--bb-site-gutter)));
}

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  width: 100%;
}

.header-inner {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr auto;
  min-height: 90px;
}

.brand {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  max-width: min(240px, 48vw);
}

.brand-logo {
  display: block;
  height: auto;
  max-height: 90px;
  max-width: 100%;
  width: auto;
}

.brand-title {
  font-family: "Raleway", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 300;
  letter-spacing: 0.01em;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.theme-toggle {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-family: "Segoe UI Symbol", "Apple Symbols", "Noto Sans Symbols2", "Noto Sans Symbols", sans-serif;
  font-size: 25px;
  line-height: 1;
  min-height: 38px;
  min-width: 38px;
  padding: 6px;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  color: var(--accent);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.theme-toggle:focus:not(:focus-visible) {
  outline: none;
}

.page-main {
  padding: 44px 0 64px;
}

.legal-content {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  margin: 0 auto;
  max-width: 900px;
  padding: 30px 32px;
}

.legal-content h1 {
  font-family: "Raleway", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin: 0 0 20px;
}

.legal-content h2 {
  color: var(--text);
  font-family: "Raleway", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(20px, 2vw, 27px);
  font-weight: 300;
  line-height: 1.2;
  margin: 30px 0 10px;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
}

.legal-content ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.legal-content a {
  color: var(--accent);
}

.legal-content a:hover,
.legal-content a:focus-visible {
  text-decoration: underline;
}

.back-link {
  display: inline-block;
  margin-top: 28px;
}

.site-footer {
  background: var(--panel);
  border-top: 1px solid var(--line);
}

.footer-inner {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 8px;
  justify-content: center;
  min-height: 78px;
  text-align: center;
}

.footer-inner a {
  color: var(--text);
}

.footer-inner a:hover,
.footer-inner a:focus-visible {
  color: var(--accent);
}

.cookie-banner {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 3px;
  bottom: 20px;
  display: none;
  gap: 14px;
  left: 20px;
  padding: 14px 16px;
  position: fixed;
  right: 20px;
  z-index: 120;
}

.cookie-banner.visible {
  display: flex;
}

.cookie-banner p {
  color: var(--muted);
  margin: 0;
}

.btn {
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  border-radius: 3px;
  color: var(--btn-text);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  line-height: 1;
  padding: 9px 12px;
}

.btn:hover,
.btn:focus-visible {
  background: var(--btn-bg-hover);
  border-color: var(--btn-border-hover);
}

@media only screen and (max-width: 767px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    min-height: 64px;
  }

  .brand {
    max-width: min(160px, 48vw);
  }

  .brand-logo {
    max-height: 64px;
  }

  .page-main {
    padding: 34px 0 52px;
  }

  .legal-content {
    padding: 24px 22px;
  }

  .cookie-banner {
    bottom: 12px;
    left: 12px;
    right: 12px;
  }
}
