@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --ink: #10251e;
  --muted: #5b6d65;
  --paper: #f7fbf7;
  --card: #ffffff;
  --green: #15803d;
  --green-dark: #0d5c2b;
  --line: #dce9df;
  --soft: #e9f6eb;
  --danger: #b42318;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1.65;
}

a { color: var(--green-dark); font-weight: 600; }
a:hover { color: var(--green); }

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(247, 251, 247, .94);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}

.nav, .container {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  text-decoration: none;
}

.brand span { color: var(--green); }
.nav-links { display: flex; gap: 20px; flex-wrap: wrap; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.language-switch { display: inline-flex; gap: 4px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.language-switch button { border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font: inherit; font-size: .8rem; padding: 4px 9px; }
.language-switch button[aria-pressed="true"] { background: var(--green); color: #fff; }
[dir="rtl"] body { font-family: Tahoma, 'DM Sans', sans-serif; }
[dir="rtl"] .eyebrow { letter-spacing: 0; }
[dir="rtl"] .notice { border-left: 0; border-right: 4px solid var(--green); }
[dir="rtl"] .legal-document ul { padding-left: 0; padding-right: 24px; }

main { padding: 72px 0 96px; }
.hero { max-width: 760px; padding: 48px 0 56px; }
.eyebrow {
  color: var(--green);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.15;
  margin: 0 0 16px;
}
h1 { font-size: clamp(2.5rem, 7vw, 5rem); letter-spacing: -.05em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 44px; }
h3 { font-size: 1.15rem; margin-top: 28px; }
p { margin: 0 0 16px; }
.lead { color: var(--muted); font-size: 1.2rem; max-width: 650px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 12px 20px;
  text-decoration: none;
}
.button:hover { background: var(--green-dark); color: #fff; }
.button.secondary { background: var(--soft); color: var(--green-dark); }
.button.danger { background: var(--danger); }
.button:disabled { cursor: not-allowed; opacity: .6; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.card, .legal-document, .delete-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 10px 32px rgba(20, 63, 36, .05);
}
.card { padding: 24px; }
.card h3 { margin-top: 0; }
.card p { color: var(--muted); margin-bottom: 0; }
.legal-document { max-width: 800px; padding: clamp(24px, 5vw, 56px); }
.legal-document h2:first-child { margin-top: 0; }
.legal-document ul { padding-left: 24px; }
.meta { color: var(--muted); font-size: .92rem; }
.notice { border-left: 4px solid var(--green); background: var(--soft); border-radius: 8px; padding: 16px 18px; }

.delete-panel { max-width: 640px; padding: clamp(24px, 5vw, 44px); }
.status { border-radius: 8px; display: none; margin: 18px 0 0; padding: 13px 16px; }
.status.visible { display: block; }
.status.info { background: #eef5ff; color: #19477d; }
.status.success { background: var(--soft); color: var(--green-dark); }
.status.error { background: #fff1f0; color: var(--danger); }
.signed-in { color: var(--muted); margin-top: 18px; }
.signed-in strong { color: var(--ink); }

footer { border-top: 1px solid var(--line); color: var(--muted); padding: 28px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

@media (max-width: 700px) {
  .nav { align-items: flex-start; flex-direction: column; padding: 16px 0; }
  main { padding-top: 28px; }
  .hero { padding-top: 28px; }
  .grid { grid-template-columns: 1fr; }
  .footer-inner { display: block; }
}