:root {
  --wow1-brand-blue: #2756A7;
  --wow1-blue-dark: #1D4387;
  --wow1-blue-soft: #EDF3FB;
  --wow1-brand-orange: #F15A26;
  --wow1-orange-soft: #FFF1EB;
  --wow1-ink: #212327;
  --wow1-text: #4B4F58;
  --wow1-muted: #667085;
  --wow1-border: #D8E0E7;
  --wow1-surface: #F3F6F8;
  --wow1-surface-subtle: #FAFBFC;
  --wow1-white: #FFFFFF;
  --wow1-gradient-blue: linear-gradient(135deg, #1D4387 0%, #2756A7 100%);
  --wow1-shadow: 0 18px 48px rgba(29, 67, 135, 0.13);
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

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

body,
button,
input,
select {
  font-family: Arial, sans-serif;
}

button,
input,
select {
  font: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--wow1-brand-orange);
  outline-offset: 3px;
}

.home-page .username-input:focus-visible,
.home-page .domain-select:focus-visible {
  outline: 0;
}

.home-page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.home-page .page {
  width: 100%;
  flex: 1;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 9px 12px;
  border-radius: 6px;
  background: var(--wow1-blue-dark);
  color: var(--wow1-white);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-footer {
  width: 100%;
  margin-top: 0;
  padding: 20px 16px;
  border-top: 3px solid var(--wow1-brand-orange);
  background: var(--wow1-gradient-blue);
  color: var(--wow1-white);
  font-family: Arial, sans-serif;
  font-size: 14px;
  text-align: center;
}

.footer-inner {
  width: min(960px, 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.site-footer .footer-inner a,
.cookie-settings-button {
  color: var(--wow1-white);
  border: 0;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.site-footer .footer-inner a:hover,
.cookie-settings-button:hover {
  color: var(--wow1-orange-soft);
}

.cookie-settings-button {
  margin: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.consent-banner {
  position: fixed;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 16px;
  z-index: 9998;
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  border: 1px solid var(--wow1-brand-blue);
  border-radius: 12px;
  background: var(--wow1-white);
  box-shadow: 0 20px 50px rgba(29, 67, 135, 0.24);
}

.consent-banner[hidden] {
  display: none;
}

.consent-inner {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.consent-copy h2 {
  margin: 0 0 6px;
  color: var(--wow1-ink);
  font-size: 22px;
  line-height: 1.2;
}

.consent-copy p {
  margin: 0 0 7px;
  color: var(--wow1-muted);
  font-size: 15px;
  line-height: 1.45;
}

.consent-copy a {
  color: var(--wow1-brand-blue);
  font-size: 14px;
  font-weight: 700;
  text-underline-offset: 3px;
}

.consent-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.consent-button {
  min-height: 48px;
  padding: 0 16px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
}

.consent-reject {
  border: 1px solid var(--wow1-border);
  background: var(--wow1-surface-subtle);
  color: var(--wow1-ink);
}

.consent-reject:hover {
  border-color: var(--wow1-brand-blue);
  background: var(--wow1-blue-soft);
  color: var(--wow1-brand-blue);
}

.consent-accept {
  border: 1px solid var(--wow1-brand-blue);
  background: var(--wow1-brand-blue);
  color: var(--wow1-white);
}

.consent-accept:hover {
  border-color: var(--wow1-blue-dark);
  background: var(--wow1-blue-dark);
}

.policy-page {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at top left, var(--wow1-blue-soft), transparent 36rem),
    radial-gradient(circle at bottom right, var(--wow1-orange-soft), transparent 30rem),
    var(--wow1-surface);
  color: var(--wow1-ink);
  font-family: Arial, sans-serif;
}

.policy-header {
  padding: 0 16px;
  border-bottom: 3px solid var(--wow1-brand-orange);
  background: var(--wow1-white);
  box-shadow: 0 8px 24px rgba(29, 67, 135, 0.12);
}

.policy-header-inner,
.policy-shell {
  width: min(900px, 100%);
  margin: 0 auto;
}

.policy-header-inner {
  display: flex;
  align-items: center;
  min-height: 92px;
}

.policy-brand {
  display: block;
  width: fit-content;
  border-radius: 4px;
  text-decoration: none;
}

.policy-logo {
  display: block;
  width: 224px;
  max-width: 62vw;
  height: auto;
}

.policy-intro {
  margin: 0 0 24px;
  padding: 0 0 22px;
  border-bottom: 2px solid var(--wow1-border);
}

.policy-intro h1 {
  margin: 0 0 10px;
  color: var(--wow1-ink);
  font-size: clamp(30px, 4.5vw, 40px);
  line-height: 1.15;
  scroll-margin-top: 20px;
}

.policy-intro p {
  max-width: 760px;
  margin: 0;
  color: var(--wow1-muted);
  font-size: 16px;
  line-height: 1.55;
}

.policy-shell {
  flex: 1;
  padding: 20px 16px 52px;
}

.policy-article {
  padding: clamp(20px, 4vw, 40px);
  border: 1px solid var(--wow1-border);
  border-radius: 14px;
  background: var(--wow1-white);
  box-shadow: var(--wow1-shadow);
  color: var(--wow1-text);
  font-size: 17px;
  line-height: 1.72;
}

.policy-meta {
  display: grid;
  gap: 4px;
  margin: 0 0 24px;
  padding: 14px 16px;
  border-left: 4px solid var(--wow1-brand-orange);
  border-radius: 0 8px 8px 0;
  background: var(--wow1-surface-subtle);
}

.policy-meta p {
  margin: 0;
}

.policy-article a {
  color: var(--wow1-brand-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.policy-article a:hover {
  color: var(--wow1-blue-dark);
}

.policy-article p {
  margin: 0 0 16px;
}

.policy-article blockquote {
  margin: 24px 0 28px;
  padding: 16px 18px;
  border-left: 4px solid var(--wow1-brand-orange);
  border-radius: 0 10px 10px 0;
  background: var(--wow1-orange-soft);
  color: var(--wow1-ink);
}

.policy-article blockquote p {
  margin: 0;
}

.policy-article ul {
  margin: 0 0 20px;
  padding-left: 24px;
}

.policy-article li {
  margin: 6px 0;
  padding-left: 3px;
}

.policy-article ul > li::marker {
  content: "- ";
}

.policy-article code {
  padding: 0.12em 0.3em;
  border-radius: 4px;
  background: var(--wow1-blue-soft);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92em;
}

.policy-article h2,
.policy-article h3,
.policy-article h4 {
  color: var(--wow1-ink);
  scroll-margin-top: 20px;
}

.policy-article h2 {
  margin: 48px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--wow1-border);
  font-size: clamp(26px, 4vw, 32px);
  line-height: 1.2;
}

.policy-article h3 {
  margin: 36px 0 14px;
  font-size: clamp(21px, 3vw, 25px);
  line-height: 1.25;
}

.policy-article h4 {
  margin: 26px 0 10px;
  font-size: 19px;
  line-height: 1.3;
}

.policy-article hr {
  margin: 38px 0;
  border: 0;
  border-top: 2px solid var(--wow1-border);
}

.table-of-contents {
  margin: 28px 0 36px;
  padding: 20px;
  border: 1px solid var(--wow1-border);
  border-radius: 10px;
  background: var(--wow1-surface-subtle);
}

.table-of-contents h2 {
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  font-size: 24px;
}

.toc-columns {
  display: grid;
  gap: 22px;
}

.toc-group > a {
  display: inline-block;
  margin-bottom: 7px;
  font-weight: 700;
}

.toc-group ol {
  margin: 0;
  padding-left: 23px;
}

.toc-group li {
  margin: 5px 0;
  padding-left: 1px;
}

.toc-sublist {
  margin: 4px 0 7px !important;
  padding-left: 20px !important;
  font-size: 15px;
}

.toc-legal {
  display: inline-block;
  margin-top: 16px;
  font-weight: 700;
}

.back-to-top {
  display: inline-block;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 700;
}

@media (min-width: 720px) {
  .toc-columns {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .consent-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 20px;
  }

  .consent-actions {
    min-width: 216px;
  }
}

@media (max-width: 600px) {
  .site-footer {
    padding: 18px 12px;
  }

  .footer-inner {
    max-width: 100%;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
  }

  .footer-links {
    gap: 6px;
    white-space: nowrap;
  }

  .footer-separator {
    display: none;
  }

  .consent-banner {
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    width: calc(100% - 20px);
  }

  .consent-inner {
    gap: 14px;
    padding: 16px;
  }

  .consent-copy h2 {
    font-size: 20px;
  }

  .consent-copy p {
    font-size: 14px;
  }

  .policy-header {
    padding: 0 12px;
  }

  .policy-header-inner {
    min-height: 76px;
  }

  .policy-logo {
    width: 184px;
    max-width: 68vw;
  }

  .policy-shell {
    padding: 16px 12px 40px;
  }

  .policy-article {
    padding: 22px 20px;
    border-radius: 12px;
    font-size: 16px;
    line-height: 1.66;
  }

  .policy-intro {
    margin-bottom: 20px;
    padding-bottom: 18px;
  }

  .policy-intro h1 {
    font-size: 30px;
  }

  .table-of-contents {
    padding: 16px;
  }
}
