/* SonicMate — pagine legali e di supporto */

:root {
  --ground: #fbfafd;
  --surface: #ffffff;
  --surface-2: #f2eef8;
  --ink: #1a1722;
  --ink-soft: #5d5670;
  --line: #e5dff0;
  --accent: #6d3fc4;
  --accent-soft: #f0e9fb;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(26, 23, 34, .05), 0 10px 30px -18px rgba(26, 23, 34, .3);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #141318;
    --surface: #1e1c25;
    --surface-2: #272432;
    --ink: #ece9f3;
    --ink-soft: #a09aae;
    --line: #322e3e;
    --accent: #a37ae8;
    --accent-soft: #241d33;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -20px rgba(0, 0, 0, .8);
  }
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 clamp(18px, 5vw, 32px) 80px;
}

/* ---- intestazione ---- */

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  margin-bottom: clamp(28px, 6vw, 48px);
}

.site-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 18px clamp(18px, 5vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Instrument Sans", system-ui, -apple-system, sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -.01em;
  color: var(--ink);
  text-decoration: none;
}

.brand svg { display: block; flex: none; }

nav.site {
  display: flex;
  align-items: center;
  gap: 2px;
}

nav.site a {
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: .87rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
}

nav.site a:hover { background: var(--surface-2); color: var(--ink); }
nav.site a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
nav.site a:focus-visible,
.brand:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

nav.site .sep {
  width: 1px;
  height: 18px;
  background: var(--line);
  margin: 0 8px;
  flex: none;
}

nav.site a.lang {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  padding: 5px 9px;
  border: 1px solid var(--line);
}

nav.site a.lang:hover { border-color: var(--accent); color: var(--accent); background: transparent; }

/* ---- tipografia ---- */

h1 {
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.9rem, 5.5vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -.022em;
  text-wrap: balance;
  margin: 0 0 12px;
}

h2 {
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.24rem;
  letter-spacing: -.012em;
  line-height: 1.3;
  margin: 44px 0 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

h2:first-of-type { border-top: 0; padding-top: 0; }

h3 {
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin: 26px 0 8px;
}

p { margin: 0 0 16px; }

.lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.updated {
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: .82rem;
  color: var(--ink-soft);
  letter-spacing: .02em;
  margin-bottom: 36px;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

strong { font-weight: 600; }

ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 7px; }
li::marker { color: var(--ink-soft); }

code {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .83em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: .08em .38em;
  word-break: break-word;
}

/* ---- blocchi ---- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.card p:last-child, .card ul:last-child { margin-bottom: 0; }

.card h3 { margin-top: 0; }

.note {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px;
  margin-bottom: 20px;
}

.note p:last-child { margin-bottom: 0; }

/* elenco "non facciamo" */
ul.negatives { list-style: none; padding-left: 0; }
ul.negatives li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 9px;
}
ul.negatives li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: .58em;
  width: 11px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

dl.faq { margin: 0; }
dl.faq dt {
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-top: 22px;
}
dl.faq dd { margin: 6px 0 0; color: var(--ink-soft); }
dl.faq dd:first-of-type { margin-top: 6px; }

.contact {
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 1.02rem;
  font-weight: 500;
}

footer.site {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: .84rem;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

ul.servers {
  margin: 0 0 1.1rem;
  padding-left: 1.15rem;
}

ul.servers li {
  margin-bottom: 0.5rem;
}

p.disclaimer {
  margin: 2.2rem 0 0;
  font-size: 0.85rem;
  line-height: 1.55;
  opacity: 0.7;
}
