* { box-sizing: border-box; }
html { background: var(--jagku-root-bg); color-scheme: light; -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--jagku-root-bg);
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
.legal-shell {
  width: min(100% - 32px, 1040px);
  margin: 0 auto;
  padding: 28px 0 56px;
}
.legal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.legal-brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.legal-brand img {
  width: 132px;
  height: auto;
  display: block;
}
.legal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.legal-link,
.legal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--btn-glass-border);
  background: var(--btn-glass-bg);
  backdrop-filter: var(--btn-glass-blur);
  -webkit-backdrop-filter: var(--btn-glass-blur);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 650;
}
.legal-link {
  position: relative;
  isolation: isolate;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm), var(--glass-inset);
}
.legal-button {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-ink);
}
/* ds6 (F1): suprafete solide pe modelul sculptat, fara blur si fara noise pe continut */
.legal-hero,
.legal-card {
  position: relative;
  isolation: isolate;
  border: 1px solid var(--border);
  background-color: var(--jagku-section-bg);
  box-shadow: var(--shadow-md), var(--glass-inset);
}
.legal-hero {
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-shell);
  margin-bottom: 16px;
  box-shadow: var(--shadow-lg), var(--glass-inset);
}
.legal-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}
h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(34px, 6vw, 64px);
  line-height: .98;
  letter-spacing: 0;
}
.legal-intro {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.55;
}
.legal-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 13px;
}
.legal-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 11px;
  border-radius: var(--radius-pill);
  background: var(--jagku-item-bg);
  border: 1px solid var(--jagku-item-border);
  color: var(--text-main);
  font-weight: 700;
}
.legal-card {
  padding: clamp(22px, 3.4vw, 34px);
  border-radius: var(--radius-card);
}
.legal-section {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.legal-section:first-child { padding-top: 0; }
.legal-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
h2 {
  margin: 0 0 10px;
  font-size: clamp(21px, 2.3vw, 28px);
  line-height: 1.12;
  letter-spacing: 0;
}
h3 {
  margin: 18px 0 8px;
  font-size: 16px;
  line-height: 1.25;
}
p,
li {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.72;
}
p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }
ul {
  margin: 10px 0 0;
  padding-left: 20px;
}
li + li { margin-top: 8px; }
.legal-note {
  position: relative;
  isolation: isolate;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-panel);
  border: 1px solid var(--jagku-item-border);
  background-color: var(--jagku-item-bg);
  box-shadow: var(--jagku-item-shadow);
}
.legal-note strong { color: var(--text-main); }
.legal-inline-link {
  color: var(--text-main);
  font-weight: 750;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.legal-footer {
  margin-top: 16px;
  padding: 18px 4px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 12px;
}
@media (max-width: 640px) {
  .legal-shell {
    width: min(100% - 28px, 1040px);
    padding: 18px 0 42px;
  }
  .legal-top {
    align-items: flex-start;
    margin-bottom: 18px;
  }
  .legal-actions { gap: 8px; }
  .legal-link,
  .legal-button {
    min-height: 38px;
    padding: 9px 12px;
    font-size: 12px;
  }
  .legal-hero,
  .legal-card { border-radius: 28px; }
  .legal-card { padding: 20px; }
  .legal-section { padding: 20px 0; }
}
