:root {
  --orange: #ff7a18;
  --orange-deep: #e85d04;
  --ink: #121212;
  --ink-muted: #5c5c5c;
  --paper: #ffffff;
  --font: "Outfit", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #fffaf6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--orange-deep);
}

.legal-header {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 45%),
    linear-gradient(135deg, #ff8a1f 0%, #e85d04 100%);
  color: #fff;
  padding: 4.5rem 1.25rem 3.5rem;
  text-align: center;
}

.legal-header .app-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.25rem;
  object-fit: cover;
  aspect-ratio: 1;
  border-radius: 22px;
  border: 3px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  background: #fff;
}

.legal-header h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: -0.03em;
}

.legal-header .subtitle,
.legal-header .date {
  opacity: 0.92;
}

.legal-header .subtitle {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.legal-header .date {
  font-size: 0.95rem;
}

.legal-main {
  background: var(--paper);
  padding: 3.5rem 0 4rem;
}

.legal-container {
  width: min(800px, calc(100% - 2.5rem));
  margin: 0 auto;
  line-height: 1.75;
}

.back-button {
  display: inline-block;
  margin-bottom: 1.75rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(45deg, #ff7a18, #e85d04);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(232, 93, 4, 0.28);
}

.back-button:hover {
  transform: translateY(-1px);
}

.legal-section {
  margin-bottom: 2rem;
}

.legal-section h2 {
  margin: 0 0 0.75rem;
  color: var(--orange-deep);
  font-size: 1.45rem;
  border-bottom: 2px solid rgba(255, 122, 24, 0.25);
  padding-bottom: 0.4rem;
}

.legal-section h3 {
  margin: 1.25rem 0 0.5rem;
  color: #c24d00;
  font-size: 1.1rem;
}

.legal-section p,
.legal-section li {
  color: #333;
  font-size: 1.05rem;
}

.legal-section ul {
  margin: 0.75rem 0;
  padding-left: 1.35rem;
}

.privacy-table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.25rem;
  border: 1px solid rgba(18, 18, 18, 0.08);
  border-radius: 12px;
  background: #fff;
}

.privacy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.privacy-table th,
.privacy-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(18, 18, 18, 0.08);
}

.privacy-table th {
  background: #fff7ef;
  color: var(--orange-deep);
  font-weight: 600;
}

.privacy-table tr:last-child td {
  border-bottom: 0;
}

.privacy-table td {
  color: #333;
}

.contact-card {
  background: linear-gradient(135deg, #fff7ef, #fff1e6);
  border-left: 4px solid var(--orange);
  border-radius: 14px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.contact-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(18, 18, 18, 0.12);
  border-radius: 10px;
  font: inherit;
  font-size: 1rem;
  background: #fff;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form button {
  appearance: none;
  border: 0;
  min-height: 48px;
  border-radius: 10px;
  background: var(--orange);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}

.contact-form button:hover {
  background: var(--orange-deep);
}

.legal-footer {
  padding: 1.5rem 1.25rem 2rem;
  text-align: center;
  color: #8a8a8a;
  font-size: 0.9rem;
  background: #fffaf6;
}

.legal-footer__inner {
  width: min(800px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 0.75rem;
}

.legal-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.15rem;
}

.legal-footer__links a,
.legal-footer__back {
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 500;
}

.legal-footer__links a:hover,
.legal-footer__back:hover {
  color: var(--orange-deep);
}

/* Delete account — WriteReal-style, PrayBefore branding */
.delete-request-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.25rem;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ff8a1f 0%, #e85d04 100%);
}

.delete-request-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 25%, rgba(255, 255, 255, 0.18), transparent 35%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.12), transparent 40%);
  pointer-events: none;
}

.delete-request-section .container {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: center;
}

.delete-request-content {
  position: relative;
  z-index: 1;
  width: min(600px, 100%);
  margin: 0 auto;
  text-align: center;
}

.delete-request-content .app-icon {
  width: 110px;
  height: 110px;
  margin: 0 auto 1.5rem;
  object-fit: cover;
  aspect-ratio: 1;
  border-radius: 24px;
  border: 3px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  background: #fff;
}

.delete-request-content h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  letter-spacing: -0.03em;
}

.delete-request-content > p {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  opacity: 0.95;
}

.warning-box {
  background: rgba(255, 193, 7, 0.2);
  border: 1px solid rgba(255, 193, 7, 0.5);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  color: #fff8e1;
  text-align: left;
}

.warning-box strong {
  color: #ffc107;
}

.delete-form {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 1.5rem;
}

.delete-form input,
.delete-form textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  margin-bottom: 0.85rem;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  font: inherit;
  font-size: 1rem;
}

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

.delete-button {
  width: 100%;
  appearance: none;
  border: 0;
  min-height: 50px;
  border-radius: 10px;
  background: #ff4757;
  color: #fff;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
}

.delete-button:hover {
  background: #ff3742;
}

.delete-button:disabled {
  opacity: 0.75;
  cursor: wait;
}

.info-text {
  margin-top: 1.25rem;
  font-size: 0.92rem;
  opacity: 0.9;
}

.info-text a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Contact success */
.success-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 70% 50% at 15% 0%, rgba(255, 122, 24, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 45% at 90% 10%, rgba(255, 170, 80, 0.14), transparent 50%),
    linear-gradient(180deg, #fffaf6 0%, #ffffff 55%, #fff7ef 100%);
}

.success {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 3rem 1.25rem 2rem;
}

.success__card {
  position: relative;
  width: min(480px, 100%);
  text-align: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 122, 24, 0.14);
  border-radius: 24px;
  padding: 2.5rem 1.75rem 2rem;
  box-shadow: 0 24px 50px rgba(232, 93, 4, 0.12);
  animation: success-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.success__icon {
  width: 88px;
  height: auto;
  margin: 0 auto 1rem;
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(232, 93, 4, 0.28);
}

.success__badge {
  width: 48px;
  height: 48px;
  margin: -0.35rem auto 1.1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #ff8a1f, #e85d04);
  box-shadow: 0 10px 22px rgba(232, 93, 4, 0.35);
  animation: success-pop 0.55s cubic-bezier(0.34, 1.4, 0.64, 1) 0.15s both;
}

.success__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  letter-spacing: -0.03em;
  color: var(--ink);
}

.success__lead {
  margin: 0 0 0.85rem;
  color: var(--ink-muted);
  font-size: 1.08rem;
  line-height: 1.55;
}

.success__note {
  margin: 0 0 1.75rem;
  color: #8a8a8a;
  font-size: 0.95rem;
}

.success__note a {
  color: var(--orange-deep);
  font-weight: 600;
  text-decoration: none;
}

.success__note a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.success__actions {
  display: grid;
  gap: 0.7rem;
}

.success__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.1rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.success__btn--primary {
  background: linear-gradient(45deg, #ff7a18, #e85d04);
  color: #fff;
  box-shadow: 0 10px 22px rgba(232, 93, 4, 0.28);
}

.success__btn--primary:hover {
  transform: translateY(-1px);
  color: #fff;
}

.success__btn--ghost {
  background: transparent;
  color: var(--ink-muted);
  border: 1px solid rgba(18, 18, 18, 0.12);
}

.success__btn--ghost:hover {
  color: var(--orange-deep);
  border-color: rgba(232, 93, 4, 0.35);
}

.success-page .legal-footer {
  background: transparent;
}

@keyframes success-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes success-pop {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .success__card,
  .success__badge {
    animation: none;
  }
}

@media (max-width: 640px) {
  .legal-header {
    padding: 3.25rem 1rem 2.75rem;
  }

  .legal-header .app-icon {
    width: 80px;
    height: 80px;
  }

  .delete-request-content .app-icon {
    width: 88px;
    height: 88px;
  }
}
