/**
 * GDPR Page Styles
 */

.gdpr {
  padding: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary, #1a1a1a);
}

.titleIcon {
  color: var(--primary-color, #2563eb);
}

.subtitle {
  margin: 0.5rem 0 0;
  color: var(--text-secondary, #666);
  font-size: 0.9375rem;
}

.backLink {
  text-decoration: none;
  color: var(--primary-color, #2563eb);
  font-size: 0.875rem;
  font-weight: 500;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.section {
  background: var(--surface-color, #ffffff);
  border: 1px solid var(--border-color, #e0e0e0);
  border-radius: 12px;
  padding: 1.5rem;
}

.sectionTitle {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary, #1a1a1a);
}

.actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.actionCard {
  border: 1px solid var(--border-color, #e0e0e0);
  border-radius: 10px;
  padding: 1rem;
  background: var(--bg-primary, #ffffff);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.actionCard h3 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-primary, #1a1a1a);
}

.actionCard p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-secondary, #666);
}

.deleteConfirm {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid var(--border-color, #e0e0e0);
  padding-top: 0.75rem;
}

.deleteWarning {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-secondary, #666);
}

.deleteInput {
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border-color, #d0d0d0);
  font-size: 0.875rem;
}

.deleteActions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.primaryButton,
.secondaryButton,
.dangerButton {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.primaryButton {
  background: var(--primary-color, #2563eb);
  color: #fff;
}

.primaryButton:hover {
  filter: brightness(0.95);
}

.secondaryButton {
  background: var(--surface-color, #f5f5f5);
  color: var(--text-primary, #1a1a1a);
  border-color: var(--border-color, #d0d0d0);
}

.secondaryButton:hover {
  background: var(--surface-color, #ededed);
}

.dangerButton {
  background: #dc2626;
  color: #fff;
}

.dangerButton:hover {
  filter: brightness(0.95);
}

.primaryButton:disabled,
.secondaryButton:disabled,
.dangerButton:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.buttonSpinner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.buttonSpinner svg {
  animation: spinnerRotate 1s linear infinite;
}

.message {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
}

.successMessage {
  background: #ecfdf3;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.errorMessage {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.infoGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.infoBlock {
  background: var(--surface-color, #f8fafc);
  border-radius: 10px;
  padding: 1rem;
  border: 1px solid var(--border-color, #e0e0e0);
}

.infoBlock h3 {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
}

.infoBlock ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.8125rem;
  color: var(--text-secondary, #666);
}

.infoBlock li {
  margin-bottom: 0.35rem;
}

.mutedText {
  color: var(--text-secondary, #666);
  font-size: 0.875rem;
}

.errorText {
  color: #991b1b;
  font-size: 0.875rem;
}

@media (max-width: 720px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@keyframes spinnerRotate {
  to {
    transform: rotate(360deg);
  }
}
