.privacy-page {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 max(60px, env(safe-area-inset-bottom));
}

.privacy-hero,
.privacy-choice,
.language-nav,
.policy-card {
  border-radius: 24px;
}

.privacy-hero {
  padding: clamp(24px, 5vw, 48px);
}

.privacy-back {
  display: inline-flex;
  margin-bottom: 30px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.privacy-hero h1 {
  margin: 9px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 7vw, 4.3rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.privacy-hero p {
  max-width: 650px;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.privacy-hero small {
  display: block;
  margin-top: 16px;
  color: var(--text-soft);
}

.privacy-choice {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 20px;
}

.privacy-choice h2 {
  margin: 8px 0 4px;
  font-size: 1rem;
}

.privacy-choice p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.privacy-status {
  display: inline-flex;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #ffd3a8;
  background: rgba(255, 138, 52, 0.1);
  font-size: 0.6rem;
  font-weight: 800;
}

.privacy-status[data-choice="accepted"] {
  color: #bdffe0;
  background: rgba(98, 230, 168, 0.1);
}

.privacy-choice__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.language-nav {
  position: sticky;
  z-index: 4;
  top: 10px;
  display: flex;
  gap: 8px;
  justify-content: center;
  width: fit-content;
  margin: 16px auto;
  padding: 6px;
}

.language-nav a {
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.language-nav a:hover {
  color: white;
  background: rgba(123, 53, 242, 0.2);
}

.policy-card {
  margin-top: 16px;
  padding: clamp(22px, 5vw, 46px);
  scroll-margin-top: 86px;
}

.policy-card h2 {
  margin: 8px 0 30px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  letter-spacing: -0.035em;
}

.policy-card h3 {
  margin: 30px 0 8px;
  color: color-mix(in srgb, var(--secondary) 64%, white);
  font-size: 0.92rem;
}

.policy-card p,
.policy-card li {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.75;
}

.policy-card p {
  margin: 8px 0;
}

.policy-card ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.policy-card a {
  color: color-mix(in srgb, var(--secondary) 66%, white);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy-table-wrap {
  margin-top: 12px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 15px;
}

.policy-table-wrap table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.7rem;
}

.policy-table-wrap th,
.policy-table-wrap td {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  text-align: left;
  vertical-align: top;
}

.policy-table-wrap th {
  color: rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.035);
}

.policy-table-wrap td {
  color: var(--text-muted);
}

.privacy-footer {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding-top: 28px;
  color: var(--text-soft);
  font-size: 0.68rem;
  font-weight: 700;
}

.privacy-footer img {
  width: 28px;
  height: 28px;
  border-radius: 9px;
}

@media (max-width: 680px) {
  .privacy-page {
    width: min(100% - 20px, 920px);
    padding-top: 10px;
  }

  .privacy-hero,
  .privacy-choice,
  .policy-card {
    border-radius: 19px;
  }

  .privacy-choice {
    flex-direction: column;
    align-items: stretch;
  }

  .privacy-choice__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .privacy-choice__actions button {
    width: 100%;
    min-width: 0;
    padding-inline: 9px;
    white-space: normal;
  }

  .policy-card h2 {
    margin-bottom: 22px;
  }

  .policy-card h3 {
    margin-top: 24px;
  }
}

@media (max-width: 420px) {
  .privacy-choice__actions {
    grid-template-columns: 1fr;
  }
}
