* {
  box-sizing: border-box;
}

:root {
  --text: #10253a;
  --muted: #132a40;
  --line: rgba(16, 37, 58, 0.13);
  --accent: #7c1721;
  --shadow: rgba(5, 20, 36, 0.28);
  --font-family: "Aptos", "Segoe UI Variable", "Segoe UI", "Helvetica Neue", sans-serif;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: var(--font-family);
  background: #eef3f8;
}

body::before {
  display: none;
}

a {
  color: var(--accent);
}

.privacy-hero {
  min-height: clamp(30rem, 72vh, 44rem);
  padding: clamp(1rem, 0.7rem + 1.8vw, 2rem) 0 clamp(4.5rem, 8vh, 7rem);
  background:
    linear-gradient(90deg, rgba(5, 18, 32, 0.6), rgba(5, 18, 32, 0.22) 44%, rgba(5, 18, 32, 0.42)),
    linear-gradient(180deg, rgba(5, 18, 32, 0.18), rgba(5, 18, 32, 0.48)),
    url("../assets/backgrounds/privacy-policy-background.webp") center / cover no-repeat;
}

.privacy-hero__inner,
.policy-section {
  width: min(960px, calc(100% - 2rem));
  margin: 0 auto;
}

.privacy-hero__inner {
  display: flex;
  min-height: inherit;
  flex-direction: column;
}

.privacy-hero__content {
  max-width: 48rem;
  margin-top: auto;
  padding: clamp(3rem, 8vh, 6rem) 0 0;
}

.policy-section {
  position: relative;
  z-index: 1;
  margin-top: -3.25rem;
  padding-bottom: clamp(2rem, 1.2rem + 4vw, 4.5rem);
}

.privacy-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1.6rem, 1.1rem + 2vw, 2.8rem);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #f7fbff;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  text-shadow: 0 2px 12px rgba(5, 18, 32, 0.34);
}

.brand-link img {
  width: 4.8rem;
  height: 4.8rem;
  object-fit: contain;
}

.home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.68rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(248, 252, 255, 0.46);
  color: #10253a;
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
  backdrop-filter: blur(16px);
}

.privacy-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-left: auto;
}

.privacy-language {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(248, 252, 255, 0.34);
  backdrop-filter: blur(16px);
}

.privacy-language button {
  min-width: 2.55rem;
  min-height: 2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #10253a;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
}

.privacy-language button[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 8px 20px rgba(18, 39, 61, 0.12);
}

.policy-card {
  overflow: hidden;
  border: 1px solid rgba(16, 37, 58, 0.09);
  border-radius: 8px;
  background: rgba(248, 251, 253, 0.96);
  box-shadow: 0 26px 72px rgba(18, 39, 61, 0.18);
}

.policy-hero {
  padding: clamp(1.4rem, 1rem + 2vw, 2.6rem);
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: #ffe7d5;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 12ch;
  margin: 0;
  color: #f7fbff;
  font-size: clamp(2.3rem, 1.7rem + 2.6vw, 4.2rem);
  line-height: 1.02;
}

.policy-content {
  padding: clamp(1.4rem, 1rem + 2vw, 2.6rem);
  background: transparent;
}

.placeholder {
  margin: 0 0 1.4rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(16, 37, 58, 0.16);
  border-radius: 8px;
  background: rgba(247, 251, 254, 0.26);
  color: var(--muted);
  line-height: 1.6;
}

.section {
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}

.section:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.section + .section {
  margin-top: 1.35rem;
}

h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.35;
}

h3 {
  margin: 1rem 0 0;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.4;
}

p,
ul {
  color: var(--muted);
  line-height: 1.72;
}

p {
  margin: 0.7rem 0 0;
}

ul {
  margin: 0.7rem 0 0;
  padding-left: 1.2rem;
}

code {
  color: var(--text);
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 0.94em;
}

@media (max-width: 640px) {
  .privacy-hero {
    min-height: 34rem;
    padding-bottom: 5.5rem;
  }

  .privacy-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .privacy-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
  }

  .brand-link img {
    width: 4rem;
    height: 4rem;
  }

  .home-link {
    width: 100%;
  }

  .privacy-language {
    width: 100%;
  }

  .privacy-language button {
    flex: 1;
  }

  .policy-section {
    width: calc(100% - 1rem);
    margin-top: -2.5rem;
  }
}
