:root {
  color-scheme: dark;
  background: #0b0b0f;
  color: var(--nc-text);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #0b0b0f;
}

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

/* The app shell locks html and body (height 100%, overflow hidden) and
   centres the body, because its pages scroll inside .app-content. A policy
   page has no such scroller, so the body scrolls and starts at the top;
   centred, a long policy overflowed upward where it could not be reached. */
body.privacy-page {
  justify-content: flex-start !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

/* The header is fixed (the shared shell wins over its relative position
   above), so the policy starts below its 60 px. */
body.privacy-page .privacy-policy {
  padding-top: calc(var(--nc-header-total, 60px) + 20px) !important;
}

.legal-app-header {
  position: relative;
  inset: auto;
  width: 100%;
  height: 60px;
  min-height: 60px;
  transform: none;
  z-index: 10;
}

.legal-app-header .nitro-shared-back-header {
  position: relative;
  overflow: hidden;
  height: 60px;
  min-height: 60px;
  background: #1A1D22;
  border: 1px solid #6D7884;
  border-top: 0;
  border-radius: 0 0 24px 24px;
}

.legal-app-header .header-top-bar {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: #1A1D22;
}

.legal-app-header .nitro-console {
  position: absolute;
  inset: 0 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.legal-app-header .nitroconsole_span {
  color: var(--nc-text);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.legal-app-header .back-icon {
  position: absolute;
  left: 36px;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translateY(-50%);
}

.legal-app-header .back-icon img {
  display: block;
  width: 22px;
  height: 22px;
}

.legal-header {
  position: sticky;
  z-index: 10;
  top: 0;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px max(18px, env(safe-area-inset-right)) 8px max(18px, env(safe-area-inset-left));
  border-bottom: 1px solid rgba(245, 247, 250, 0.08);
  background: rgba(11, 11, 15, 0.88);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.legal-header__brand,
.legal-header__nav a {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--nc-text);
  text-decoration: none;
}

.legal-header__brand {
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
}

.legal-header__brand img {
  width: 30px;
  height: 30px;
}

.legal-header__nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}

.legal-header a:hover {
  color: #ffffff;
}

.legal-header a:focus-visible {
  outline: 2px solid var(--nc-action);
  outline-offset: 3px;
  border-radius: 8px;
}

.privacy-policy {
  flex: 1;
  width: min(760px, calc(100% - 36px));
  margin: 0 auto;
  padding: 48px 0 64px;
  font-size: 16px;
  line-height: 1.65;
}

@media (max-width: 767.98px) {
  .legal-header__nav {
    gap: 10px;
  }

  .legal-header__nav a:last-child {
    display: none;
  }

  .privacy-policy {
    padding-top: 36px;
  }
}

.privacy-policy__eyebrow,
.privacy-policy__date {
  color: var(--nc-text-muted);
}

.privacy-policy__eyebrow {
  margin: 0 0 24px;
}

.privacy-policy__date {
  margin: -10px 0 32px;
  font-size: 14px;
}

.privacy-policy h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 8vw, 52px);
  line-height: 1.05;
}

.privacy-policy h2 {
  margin: 38px 0 10px;
  font-size: 22px;
  line-height: 1.25;
}

.privacy-policy p,
.privacy-policy ul {
  margin: 0 0 16px;
}

.privacy-policy li + li {
  margin-top: 9px;
}

.privacy-policy a {
  color: #4D9AFF;
}

.privacy-policy a:focus-visible {
  outline: 2px solid #F5F7FA;
  outline-offset: 4px;
  border-radius: 0;
}

@media (max-width: 767.98px) {
  .privacy-policy {
    width: min(100% - 32px, 760px);
    padding-top: 32px;
  }

  .privacy-policy ul {
    padding-left: 22px;
  }
}

/* SEO guides reuse the legal-page layout. */
.privacy-policy ol { margin: 0 0 16px; padding-left: 22px; }
.privacy-policy h3 { margin: 24px 0 8px; font-size: 18px; line-height: 1.3; }
.guide-cta { margin: 40px 0 0; padding: 20px; border: 1px solid rgba(245, 247, 250, 0.12); border-radius: 16px; }
.guide-cta h2 { margin-top: 0; }
