:root {
  --bg-brand: #0284c7;
  --bg-page: #c0f7ff;
  --white: #ffffff;
  --black: #0c4a6e;
  --muted: #0369a1;
  --text-body: #475569;
  --shadow-sm: 0 4px 12px rgba(2, 132, 199, 0.08);
  --shadow-md: 0 10px 30px rgba(2, 132, 199, 0.15);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-page);
  color: var(--black);
  font-family: 'Plus Jakarta Sans', sans-serif;
  min-height: 100vh;
  padding: max(24px, env(safe-area-inset-top)) 20px max(32px, env(safe-area-inset-bottom));
}

.page {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.site-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.back-link {
  align-self: flex-start;
  color: var(--black);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.back-link:hover {
  opacity: 1;
  text-decoration: underline;
}

.logo-cloudfridge {
  width: 72px;
  height: 72px;
  margin-top: 4px;
  filter: drop-shadow(0 4px 8px rgba(2, 132, 199, 0.2));
}

.brand-name {
  font-family: 'Fredoka', sans-serif;
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1;
  color: var(--black);
}

.brand-tagline {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.9;
  color: var(--muted);
}

.card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 18px;
  border: 1px solid rgba(2, 132, 199, 0.12);
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.legal-card {
  padding: 28px 24px 32px;
}

.legal-content {
  color: var(--black);
  text-align: left;
  line-height: 1.6;
}

.legal-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
  line-height: 1.2;
}

.legal-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

.legal-content h2 {
  font-family: 'Fredoka', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  margin-top: 28px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(2, 132, 199, 0.12);
}

.legal-content p,
.legal-content li {
  font-size: 14px;
  color: var(--text-body);
  margin-bottom: 12px;
}

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

.legal-content strong {
  color: var(--black);
  font-weight: 600;
}

.legal-content a {
  color: var(--bg-brand);
  font-weight: 600;
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

.note {
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.2);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
}

.note p {
  margin-bottom: 0;
  color: var(--black);
}

.site-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}

.footer-link {
  color: var(--black);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 1px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer-link:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-links-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.delete-form {
  margin-top: 12px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(2, 132, 199, 0.22);
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  color: var(--black);
}

.form-control:focus {
  outline: none;
  border-color: var(--bg-brand);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.submit-btn {
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: var(--bg-brand);
  color: #fff;
  font-family: 'Fredoka', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.submit-btn:hover {
  background: #0369a1;
  transform: translateY(-1px);
}
