/* SafeApp Legal — Design tokens */
:root {
  --color-bg: #f8f7f4;
  --color-surface: #ffffff;
  --color-text: #1a1f2e;
  --color-text-muted: #5c6478;
  --color-accent: #0d7a6f;
  --color-accent-light: #e8f5f3;
  --color-accent-dark: #065a52;
  --color-border: #e4e2dc;
  --color-hero-glow: rgba(13, 122, 111, 0.12);
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 3px rgba(26, 31, 46, 0.06);
  --shadow-md: 0 8px 30px rgba(26, 31, 46, 0.08);
  --shadow-lg: 0 20px 50px rgba(26, 31, 46, 0.1);
  --header-height: 72px;
  --max-width: 760px;
  --container: min(1120px, 100% - 2.5rem);
  --shadow-3d:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 2px 4px rgba(26, 31, 46, 0.04),
    0 8px 16px rgba(26, 31, 46, 0.06),
    0 20px 40px rgba(26, 31, 46, 0.08);
  --shadow-3d-hover:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 4px 8px rgba(26, 31, 46, 0.06),
    0 16px 32px rgba(26, 31, 46, 0.1),
    0 32px 64px rgba(26, 31, 46, 0.12);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1.5rem);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(248, 247, 244, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.logo-img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-img--sm {
  width: 28px;
  height: 28px;
}

.nav {
  display: flex;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--color-accent);
  background: var(--color-accent-light);
}

/* Hero */
.hero {
  position: relative;
  padding: 4.5rem 0 5rem;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 55%;
  height: 120%;
  background: radial-gradient(ellipse at center, var(--color-hero-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 640px;
}

.hero-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.hero-title {
  margin: 0 0 1.25rem;
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 6vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-title em {
  font-style: italic;
  color: var(--color-accent);
}

.hero-lead {
  margin: 0 0 2rem;
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

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

.btn-primary {
  color: #fff;
  background: var(--color-accent);
  box-shadow: 0 4px 14px rgba(13, 122, 111, 0.35);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  box-shadow: 0 6px 20px rgba(13, 122, 111, 0.4);
}

.btn-secondary {
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* About / home page */
.about-page {
  padding-bottom: 0;
}

.about-page .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-content {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
}

.about-hero {
  position: relative;
  padding: 4.5rem 0 3rem;
  overflow: hidden;
}

.about-hero-inner {
  position: relative;
  width: 100%;
  max-width: var(--max-width);
  text-align: center;
}

.about-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.about-title {
  margin: 0 0 1.25rem;
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 4.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.about-title em {
  font-style: italic;
  color: var(--color-accent);
}

.about-tagline {
  margin: 0 auto;
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  line-height: 1.65;
  color: var(--color-text-muted);
  max-width: 58ch;
}

.about-intro {
  padding: 0 0 3.5rem;
}

.card-3d {
  position: relative;
  background: linear-gradient(160deg, #ffffff 0%, #f3f2ef 100%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-bottom-color: rgba(26, 31, 46, 0.1);
  border-right-color: rgba(26, 31, 46, 0.07);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3d);
  transform: translateY(0);
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.28s ease;
}

.card-3d::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, transparent 42%);
  pointer-events: none;
  z-index: 0;
}

.card-3d > * {
  position: relative;
  z-index: 1;
}

.card-3d:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-3d-hover);
  border-bottom-color: rgba(13, 122, 111, 0.15);
  border-right-color: rgba(13, 122, 111, 0.1);
}

.about-card {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 2rem 2.25rem;
}

.about-intro-text {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--color-text-muted);
}

.about-intro-text:last-child {
  margin-bottom: 0;
}

.about-intro-text a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.about-features {
  padding: 4rem 0;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-accent-light) 100%);
  border-top: 1px solid var(--color-border);
}

.about-features-header {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto 2.5rem;
  text-align: center;
}

.about-features-title {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.about-features-title em {
  font-style: italic;
  color: var(--color-accent);
}

.about-features-lead {
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 62ch;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  align-items: stretch;
}

.feature-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 220px;
  padding: 1.85rem 1.65rem;
  isolation: isolate;
}

.feature-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, #eefaf8 0%, #dcefe9 100%);
  color: var(--color-accent);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 4px 10px rgba(13, 122, 111, 0.15);
}

.feature-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.feature-card p {
  flex: 1;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

.about-legal {
  padding: 3.5rem 0 5rem;
}

.about-legal-inner {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 2.25rem 2.25rem;
  text-align: center;
}

.about-legal-label {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.about-legal-text {
  margin: 0 0 1.5rem;
  color: var(--color-text-muted);
}

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

/* Legal documents */
main {
  padding-bottom: 4rem;
}

.legal-doc {
  max-width: var(--max-width);
  margin-bottom: 2rem;
}

main > .legal-doc:first-child {
  padding-top: calc(var(--header-height) + 2.5rem);
}

.doc-header {
  margin-bottom: 2.5rem;
}

.doc-badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  background: var(--color-accent-light);
  border-radius: 100px;
}

.doc-badge--privacy {
  color: #3d4a8f;
  background: #eef0fa;
}

.doc-badge--delete {
  color: #8a3b2e;
  background: #f8ebe8;
}

.doc-badge--safety {
  color: #6b4a1a;
  background: #f5efdf;
}

.doc-header h1,
.doc-header h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.doc-meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.doc-body {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.clause {
  padding: 1.75rem 2rem;
  border-bottom: 1px solid var(--color-border);
}

.clause:last-child {
  border-bottom: none;
}

.clause h2,
.clause h3 {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.clause p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.clause p + p,
.clause h3 + p,
.clause ul + p,
.clause ol + p {
  margin-top: 0.85rem;
}

.clause p + h3,
.clause ul + h3,
.clause ol + h3 {
  margin-top: 1.25rem;
}

.clause ul,
.clause ol {
  margin: 0.75rem 0 0;
  padding-left: 1.35rem;
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.clause li + li {
  margin-top: 0.35rem;
}

.clause a {
  color: var(--color-accent-dark);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.clause a:hover {
  color: var(--color-accent);
}

.clause-notice {
  padding: 1rem 1.15rem;
  font-weight: 600;
  color: var(--color-text) !important;
  background: #f8ebe8;
  border-left: 3px solid #c45c4a;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.doc-divider {
  display: flex;
  justify-content: center;
  padding: 3rem 0;
}

.doc-divider span {
  display: block;
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  border-radius: 2px;
  opacity: 0.5;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-left: auto;
}

.footer-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--color-accent);
}

.footer-copy {
  width: 100%;
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Contact section */
.contact-section {
  padding: 4.5rem 0 5rem;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-accent-light) 100%);
  border-top: 1px solid var(--color-border);
}

.contact-header {
  max-width: 520px;
  margin-bottom: 2.75rem;
}

.contact-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.contact-title {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.contact-section--page {
  min-height: calc(100vh - var(--header-height));
  border-top: none;
}

.contact-title em {
  font-style: italic;
  color: var(--color-accent);
}

.contact-lead {
  margin: 0;
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.75rem 1.5rem;
  text-decoration: none;
  color: inherit;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

.contact-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 0.5rem;
  border-radius: var(--radius-md);
  background: var(--color-accent-light);
  color: var(--color-accent);
}

.contact-card--whatsapp .contact-card-icon {
  background: #e7f8ef;
  color: #25d366;
}

.contact-card--whatsapp:hover {
  border-color: #25d366;
}

.contact-card-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.contact-card-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.contact-card-hint {
  font-size: 0.85rem;
  color: var(--color-accent);
  margin-top: 0.25rem;
}

.contact-card--whatsapp .contact-card-hint {
  color: #128c7e;
}

/* Accordion dropdown */
.contact-dropdown {
  max-width: var(--max-width);
  margin-inline: auto;
}

.contact-dropdown-title {
  margin: 0 0 1.25rem;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.accordion-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.accordion-item[open] {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  font-size: 0.975rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.accordion-trigger::-webkit-details-marker {
  display: none;
}

.accordion-trigger::marker {
  display: none;
  content: "";
}

.accordion-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: var(--color-accent-light);
  border-radius: 50%;
  position: relative;
  transition: transform 0.25s, background 0.2s;
}

.accordion-chevron::before,
.accordion-chevron::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
  transition: transform 0.25s;
}

.accordion-chevron::before {
  transform: translate(-50%, -50%) rotate(90deg);
}

.accordion-chevron::after {
  transform: translate(-50%, -50%);
}

.accordion-item[open] .accordion-chevron {
  background: var(--color-accent);
  transform: rotate(180deg);
}

.accordion-item[open] .accordion-chevron::before,
.accordion-item[open] .accordion-chevron::after {
  background: #fff;
}

.accordion-item[open] .accordion-chevron::before {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}

.accordion-trigger:hover .accordion-chevron {
  background: var(--color-accent);
}

.accordion-trigger:hover .accordion-chevron::before,
.accordion-trigger:hover .accordion-chevron::after {
  background: #fff;
}

.accordion-panel {
  padding: 0 1.35rem 1.25rem;
}

.accordion-panel p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.accordion-panel a {
  color: var(--color-accent);
  font-weight: 500;
  text-decoration: none;
}

.accordion-panel a:hover {
  text-decoration: underline;
}

/* Floating WhatsApp button */
.whatsapp-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  color: #fff;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  background: #20bd5a;
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.55);
}

.whatsapp-float-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition: opacity 0.2s, transform 0.2s;
}

.whatsapp-float:hover .whatsapp-float-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Responsive */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .feature-card {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .nav {
    gap: 0;
  }

  .nav-link {
    padding: 0.35rem 0.4rem;
    font-size: 0.68rem;
  }

  .hero {
    padding: 3rem 0 3.5rem;
  }

  .about-hero {
    padding: 3rem 0 2rem;
  }

  .about-card,
  .about-legal-inner {
    padding: 1.5rem 1.25rem;
  }

  .card-3d:hover {
    transform: translateY(-4px);
  }

  .about-features {
    padding: 2.5rem 0;
  }

  .about-legal {
    padding: 2.5rem 0 3.5rem;
  }

  .about-legal-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .about-legal-actions .btn {
    width: 100%;
  }

  .clause {
    padding: 1.35rem 1.25rem;
  }

  .footer-nav {
    margin-left: 0;
    width: 100%;
  }

  .contact-section {
    padding: 3rem 0 3.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact-card {
    padding: 1.35rem 1.25rem;
  }

  .whatsapp-float {
    right: 1rem;
    bottom: 1rem;
    width: 54px;
    height: 54px;
  }

  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }

  .whatsapp-float-tooltip {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn:hover {
    transform: none;
  }

  .contact-card:hover,
  .whatsapp-float:hover {
    transform: none;
  }
}
