:root {
  color: #202124;
  background: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #ffffff;
  color: #202124;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.home-shell {
  grid-template-rows: 1fr auto;
  align-content: stretch;
  justify-items: center;
  gap: 28px;
}

.download-panel,
.support-panel {
  width: min(100%, 460px);
  display: grid;
  justify-items: center;
  gap: 22px;
  text-align: center;
}

.deletion-panel {
  width: min(100%, 680px);
  display: grid;
  justify-items: center;
  gap: 22px;
  text-align: center;
}

.brand-logo {
  width: min(220px, 70vw);
  height: auto;
  display: block;
}

.brand-logo-small {
  width: min(170px, 56vw);
}

h1 {
  margin: 0;
  color: #202124;
  font-size: clamp(28px, 7vw, 42px);
  line-height: 1.12;
  font-weight: 700;
}

.button-row {
  width: 100%;
  display: grid;
  gap: 12px;
}

.store-button {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid #202124;
  border-radius: 8px;
  background: #202124;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.store-button:focus-visible,
.store-badge-link:focus-visible,
.support-link:focus-visible,
.contact-box a:focus-visible,
.legal-content a:focus-visible,
.deletion-form input:focus-visible,
.deletion-form textarea:focus-visible,
.deletion-form button:focus-visible,
.legal-banner a:focus-visible {
  outline: 3px solid #5b9dd9;
  outline-offset: 3px;
}

.store-badge-link {
  min-width: 0;
  width: 100%;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  text-decoration: none;
}

.store-badge-img {
  width: 190px;
  max-width: 100%;
  display: block;
}

.store-badge-app-store {
  height: 64px;
}

.store-badge-google-play {
  height: 83px;
}

.danger-button {
  width: 100%;
  border-color: #b3261e;
  background: #b3261e;
}

.secondary-button {
  width: 100%;
  border-color: #202124;
  background: #ffffff;
  color: #202124;
}

.intro-text {
  max-width: 620px;
  margin: 0;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.6;
}

.deletion-deadline {
  width: 100%;
  margin: 0;
  padding: 16px 18px;
  border-left: 4px solid #137333;
  border-radius: 0 8px 8px 0;
  background: #eef7f0;
  color: #202124;
  font-size: 16px;
  line-height: 1.55;
  text-align: left;
}

.deletion-details {
  width: 100%;
  padding: 18px 20px;
  border: 1px solid #d8dadd;
  border-radius: 8px;
  background: #f8f9fa;
  text-align: left;
}

.deletion-details h2 {
  margin: 0 0 10px;
  font-size: 19px;
}

.deletion-details ul {
  margin: 0;
  padding-left: 22px;
  color: #4b5563;
  line-height: 1.55;
}

.deletion-form {
  width: 100%;
  display: grid;
  gap: 18px;
  text-align: left;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field label,
.checkbox-field span {
  color: #202124;
  font-size: 15px;
  font-weight: 700;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #9aa0a6;
  border-radius: 7px;
  background: #ffffff;
  color: #202124;
  font: inherit;
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.field-help {
  margin: 0;
  color: #5f6368;
  font-size: 13px;
  line-height: 1.45;
}

.checkbox-field {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
}

.deletion-form button {
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid #b3261e;
  border-radius: 8px;
  background: #b3261e;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.deletion-form button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.form-status {
  min-height: 22px;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.form-status-success {
  color: #137333;
}

.form-status-error {
  color: #b3261e;
}

.honeypot-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.support-link {
  color: #202124;
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-box {
  width: 100%;
  display: grid;
  gap: 0;
  border: 1px solid #d8dadd;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  text-align: left;
}

.contact-box p {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 18px;
  border-bottom: 1px solid #d8dadd;
}

.contact-box p:last-child {
  border-bottom: 0;
}

.contact-box span {
  color: #5f6368;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.contact-box a {
  color: #202124;
  overflow-wrap: anywhere;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

.status-text {
  min-height: 18px;
  margin: 0;
  color: #6b7280;
  font-size: 13px;
}

.legal-banner {
  width: min(100%, 860px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: center;
  justify-items: center;
  justify-self: center;
  align-self: end;
  gap: 10px 18px;
  margin: 0 auto;
  padding: 16px 18px 0;
  border-top: 1px solid #d8dadd;
  text-align: center;
}

.legal-banner a {
  color: #202124;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal-shell {
  align-items: start;
  padding: 34px 20px 46px;
}

.legal-panel {
  width: min(100%, 820px);
  display: grid;
  justify-items: center;
  gap: 20px;
  margin: 0 auto;
  text-align: center;
}

.raffle-rules-panel {
  gap: 28px;
}

.legal-heading {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.eyebrow {
  margin: 0;
  color: #137333;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-intro {
  max-width: 680px;
  margin: 0;
  color: #5f6368;
  font-size: 17px;
  line-height: 1.55;
}

.rule-summary {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rule-summary li {
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  border: 1px solid #d8dadd;
  border-radius: 12px;
  background: #f8f9fa;
  text-align: left;
}

.rule-summary strong {
  color: #5f6368;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rule-summary span {
  color: #202124;
  font-size: 20px;
  font-weight: 800;
}

.legal-content {
  width: 100%;
  color: #202124;
  font-size: 16px;
  line-height: 1.62;
  text-align: left;
}

.legal-content p {
  margin: 0 0 16px;
}

.legal-content p:last-child {
  margin-bottom: 0;
}

.legal-content h2 {
  margin: 0 0 12px;
  color: #202124;
  font-size: 21px;
  line-height: 1.3;
}

.legal-content ul {
  margin: 0;
  padding-left: 22px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content li:last-child {
  margin-bottom: 0;
}

.legal-content a {
  color: #0b57d0;
  font-weight: 700;
  text-underline-offset: 3px;
}

.raffle-rules-content {
  display: grid;
  gap: 14px;
}

.raffle-rules-content section {
  padding: 22px;
  border: 1px solid #e3e5e8;
  border-radius: 12px;
  background: #ffffff;
}

.legal-note {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-left: 4px solid #137333;
  border-radius: 0 8px 8px 0;
  background: #eef7f0;
  color: #202124;
  text-align: left;
}

.legal-actions {
  width: min(100%, 360px);
  display: grid;
  justify-items: stretch;
  gap: 18px;
}

.legal-actions .support-link {
  justify-self: center;
}

@media (min-width: 900px) {
  .legal-banner {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .rule-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 560px) {
  .button-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .legal-banner {
    width: min(100%, 420px);
    grid-template-columns: 1fr;
  }

  .rule-summary {
    grid-template-columns: 1fr;
  }

  .rule-summary li {
    min-height: 88px;
  }

  .raffle-rules-content section {
    padding: 18px;
  }

  .legal-note {
    display: grid;
  }

}
