.account-privacy-page {
  min-height: 100vh;
  padding-bottom: 36px;
  background: #f2f5f0;
  color: #17362a;
}

.account-privacy-page.data-safety-page {
  background-color: #061e17;
  background-image:
    linear-gradient(rgba(3, 35, 25, .38), rgba(3, 35, 25, .38)),
    url("assets/data-safety-background.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

.account-privacy-page.delete-account-page {
  background-color: #1a7201;
}

.account-privacy-page .legal-header {
  display: flex;
  width: 100%;
  min-height: 74px;
  margin: 0;
  padding: 10px clamp(14px, 3vw, 36px);
  box-sizing: border-box;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  background: #07543f;
  color: #fff;
}

.account-privacy-page .legal-header .brand,
.account-privacy-page .legal-header .brand-name {
  color: #fff;
}

.account-privacy-page .legal-header .brand-mark {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .95);
}

.legal-header-nav {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
}

.legal-header-nav a {
  padding: 9px 0;
  color: #e4f2e9;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.legal-header-nav a:hover,
.legal-header-nav a:focus-visible,
.legal-header-nav a[aria-current="page"] {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: #42d88b;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

@media (max-width: 760px) {
  .account-privacy-page.data-safety-page {
    background-attachment: scroll;
  }

  .account-privacy-page .legal-header {
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  .legal-header-nav {
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap;
    gap: 4px 20px;
  }
}

.account-privacy-page .legal-header .btn {
  text-decoration: none;
}

.safety-shell,
.deletion-shell {
  width: min(1000px, calc(100% - 36px));
  margin: 14px auto 36px;
  overflow: hidden;
  border: 1px solid #dfe9e1;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(19, 52, 37, .08);
}

.safety-hero,
.deletion-hero {
  position: relative;
  padding: clamp(30px, 6vw, 58px);
  background: #0c2b1f;
  color: #fff;
}

.safety-hero h1,
.deletion-hero h1 {
  max-width: 760px;
  margin: 18px 0 12px;
  color: #fff;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.12;
  letter-spacing: -.035em;
}

.safety-hero > p:last-child,
.deletion-hero > p:last-child {
  margin: 0;
  color: #d3e2d9;
  font-size: 16px;
  line-height: 1.6;
}

.safety-eyebrow {
  margin: 0;
  color: #22c576;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.safety-badge {
  position: absolute;
  top: 28px;
  right: 30px;
  padding: 8px 12px;
  border: 1px solid rgba(32, 197, 117, .26);
  border-radius: 999px;
  background: rgba(32, 197, 117, .12);
  color: #54e39a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
}

.safety-content {
  padding: clamp(24px, 5vw, 42px);
  background: #f8faf8;
}

.safety-content h2,
.deletion-card h2,
.deletion-notice h2 {
  margin: 0 0 8px;
  color: #14271e;
  font-size: 22px;
  letter-spacing: -.02em;
}

.safety-intro {
  margin: 0 0 20px;
  color: #66776e;
  font-size: 14px;
  line-height: 1.65;
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.safety-card {
  display: grid;
  min-height: 116px;
  padding: 18px;
  align-content: start;
  gap: 8px;
  border: 1px solid #dce6de;
  border-radius: 15px;
  background: #fff;
  color: #17362a;
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.safety-card:hover,
.safety-card:focus-visible {
  transform: translateY(-2px);
  border-color: #19a65b;
  box-shadow: 0 8px 24px rgba(20, 86, 51, .08);
}

.safety-icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  color: #119d53;
}

.safety-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.safety-card strong {
  font-size: 16px;
}

.safety-card > span:last-child {
  color: #66776e;
  font-size: 13px;
  line-height: 1.5;
}

.safety-note {
  margin-top: 16px;
  padding: 20px;
  border-radius: 15px;
  background: #fff;
}

.safety-note h3,
.safety-delete h3 {
  margin: 0 0 6px;
  color: #17362a;
  font-size: 17px;
}

.safety-note p,
.safety-delete p {
  margin: 0;
  color: #66776e;
  font-size: 14px;
  line-height: 1.65;
}

.safety-text-link {
  display: inline-flex;
  margin-top: 12px;
  color: #087c40;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.safety-delete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
}

.safety-button,
.deletion-submit {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: #119d53;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}

.safety-button:hover,
.deletion-submit:hover {
  transform: translateY(-1px);
  background: #087c40;
}

.safety-footer {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #0c2b1f;
  color: #d3e2d9;
  font-size: 12px;
}

.safety-footer a {
  color: inherit;
  text-decoration: none;
}

.safety-footer a:first-child {
  color: #fff;
  font-weight: 800;
}

.deletion-hero {
  padding-top: 34px;
  padding-bottom: 30px;
}

.deletion-hero h1 {
  margin-top: 10px;
}

.deletion-content {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 4vw, 30px);
  background: #f8faf8;
}

.deletion-card {
  padding: clamp(18px, 3vw, 24px);
  border: 1px solid #dce6de;
  border-radius: 15px;
  background: #fff;
}

.deletion-card form {
  display: grid;
  gap: 10px;
}

.deletion-auth-message,
.deletion-account-email,
.deletion-reactivation > p {
  color: #66776e;
  font-size: 14px;
  line-height: 1.65;
}

.deletion-auth-message:empty,
.deletion-form-status:empty {
  display: none;
}

.deletion-account-email {
  margin: 0 0 16px;
}

.deletion-reactivation {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #e6ece7;
}

.deletion-reactivation h3 {
  margin: 0 0 8px;
  color: #17362a;
  font-size: 18px;
}

.deletion-reactivation > p {
  margin: 0 0 16px;
}

.deletion-card label:not(.deletion-check) {
  margin-top: 8px;
  color: #263d31;
  font-size: 14px;
  font-weight: 650;
}

.deletion-card label span {
  color: #76847c;
  font-weight: 400;
}

.deletion-card input[type="text"],
.deletion-card select,
.deletion-card textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #d7e1d9;
  border-radius: 9px;
  background: #fff;
  color: #17362a;
  font: inherit;
  font-size: 14px;
}

.deletion-card input:focus,
.deletion-card select:focus,
.deletion-card textarea:focus {
  border-color: #119d53;
  outline: 3px solid rgba(17, 157, 83, .14);
}

.deletion-card textarea {
  min-height: 110px;
  resize: vertical;
}

.deletion-check {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 12px 0 16px;
  padding: 14px 16px;
  border: 1px solid #dce6de;
  border-radius: 12px;
  background: #f8faf8;
  color: #52645a;
  font-size: 13px;
  line-height: 1.55;
  cursor: pointer;
}

.deletion-check input {
  display: grid;
  width: 20px;
  height: 20px;
  margin: 0;
  place-content: center;
  appearance: none;
  border: 1.5px solid #92a399;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
}

.deletion-check input::before {
  width: 9px;
  height: 5px;
  transform: rotate(-45deg) scale(0);
  border: solid #fff;
  border-width: 0 0 2px 2px;
  content: "";
}

.deletion-check input:checked {
  border-color: #119d53;
  background: #119d53;
}

.deletion-check input:checked::before {
  transform: rotate(-45deg) scale(1);
}

.deletion-check input:focus-visible {
  outline: 3px solid rgba(17, 157, 83, .22);
  outline-offset: 2px;
}

.deletion-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 6px;
}

.deletion-form-status {
  min-height: 0;
  margin: 0;
  color: #087c40;
  font-size: 13px;
  line-height: 1.5;
}

.deletion-disclaimer,
.deletion-card .deletion-disclaimer {
  margin: 16px 0 0;
  color: #748078;
  font-size: 12px;
  line-height: 1.6;
}

.deletion-notice {
  padding: 20px 22px;
  border: 1px solid #f3d9b8;
  border-radius: 15px;
  background: #fff8ef;
}

.deletion-notice h2 {
  color: #814612;
  font-size: 17px;
}

.deletion-notice p {
  margin: 8px 0 0;
  color: #795532;
  font-size: 14px;
  line-height: 1.65;
}

.deletion-notice .deletion-notice-small {
  font-size: 12px;
}

.deletion-processing strong {
  display: block;
  margin: 12px 0 4px;
  color: #17362a;
  font-size: 17px;
}

.deletion-processing p {
  margin: 0;
  color: #66776e;
  font-size: 13px;
  line-height: 1.6;
}

.deletion-help,
.deletion-caption {
  margin: 0;
  color: #66776e;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.deletion-help a {
  color: #087c40;
  font-weight: 650;
}

.deletion-caption {
  color: #87938c;
  font-size: 12px;
}

@media (max-width: 600px) {
  .deletion-check {
    align-items: start;
  }

  .deletion-check input {
    margin-top: 1px;
  }

  .account-privacy-page .legal-header {
    padding: 10px 14px 0;
  }

  .safety-shell,
  .deletion-shell {
    width: calc(100% - 24px);
    margin-top: 8px;
    border-radius: 17px;
  }

  .safety-badge {
    position: static;
    display: inline-flex;
    margin-bottom: 4px;
  }

  .safety-hero,
  .deletion-hero {
    padding: 25px 20px;
  }

  .safety-grid {
    grid-template-columns: 1fr;
  }

  .safety-card {
    min-height: 98px;
  }

  .safety-delete {
    align-items: flex-start;
    flex-direction: column;
  }

  .safety-button {
    width: 100%;
    box-sizing: border-box;
  }

  .safety-footer {
    flex-wrap: wrap;
    padding: 12px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .safety-card,
  .safety-button,
  .deletion-submit {
    transition: none;
  }
}
