/*
 * Faelles stil for undersiderne (/support, /slet-konto, /vilkaar).
 * Samme tokens som privacy.html, der er skrevet foer denne fil og derfor
 * har sin egen kopi indlejret.
 */
:root{
  --bg:#ffffff;
  --text:#1c1e22;
  --text-dim:#565c66;
  --border:#e4e2dc;
  --accent:#a8671a;
  --surface:#faf8f4;
  --ok-bg:#eef7ee;
  --ok-border:#bcd9bc;
  --error-bg:#fcefec;
  --error-border:#e3b4a8;
}
@media (prefers-color-scheme: dark){
  :root{
    --bg:#15171b;
    --text:#eceae5;
    --text-dim:#a3a8b3;
    --border:#33363e;
    --accent:#e8a33d;
    --surface:#1c1e23;
    --ok-bg:#1b2a1f;
    --ok-border:#3c5c42;
    --error-bg:#2c1d1a;
    --error-border:#68403a;
  }
}
*{box-sizing:border-box;}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height:1.6;
}
.wrap{
  max-width:760px;
  margin:0 auto;
  padding:40px 24px 72px;
}
h1{ font-size:28px; margin:0 0 6px; line-height:1.25; }
h2{
  font-size:19px;
  margin:40px 0 12px;
  padding-bottom:8px;
  border-bottom:1px solid var(--border);
}
h2.plain{ margin:0 0 8px; padding:0; border:0; font-size:19px; }
h3{ font-size:15.5px; margin:22px 0 6px; }
p{ margin:0 0 14px; }
.lead{ color:var(--text-dim); margin:0 0 8px; }
ul{ margin:0 0 14px; padding-left:22px; }
li{ margin-bottom:6px; }
a{ color:var(--accent); }

.box{
  border:1px solid var(--border);
  border-radius:12px;
  background:var(--surface);
  padding:16px 18px;
  margin:0 0 18px;
}
.box p:last-child{ margin-bottom:0; }
.box.ok{ background:var(--ok-bg); border-color:var(--ok-border); }
.box.error{ background:var(--error-bg); border-color:var(--error-border); }

.contact{
  font-size:17px;
  font-weight:600;
}
.contact a{ font-size:19px; }

/* Formular */
.form{
  border:1px solid var(--border);
  border-radius:12px;
  background:var(--surface);
  padding:18px;
  margin:0 0 20px;
}
.field{ display:block; margin:0 0 16px; }
.field span{
  display:block;
  font-size:14px;
  font-weight:600;
  color:var(--text-dim);
  margin-bottom:6px;
}
.field input{
  font:inherit;
  width:100%;
  padding:11px 12px;
  color:var(--text);
  background:var(--bg);
  border:1px solid var(--border);
  border-radius:9px;
}
.field input:focus-visible,
.check input:focus-visible,
.form button:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
.check{
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin:0 0 18px;
  font-size:15px;
}
.check input{ width:20px; height:20px; margin:2px 0 0; flex:0 0 auto; accent-color:var(--accent); }
.form button{
  font:inherit;
  font-size:16px;
  font-weight:600;
  color:#fff;
  background:var(--accent);
  border:0;
  border-radius:999px;
  padding:12px 26px;
  cursor:pointer;
  width:100%;
}
@media (min-width:520px){
  .form button{ width:auto; }
}
/* Honeypot: skal vaere usynlig for mennesker, men udfyldbar for bots.
   display:none springes over af nogle bots, derfor skubbes den ud i stedet. */
.hp{
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  overflow:hidden;
}

.langswitch{
  display:flex;
  gap:4px;
  justify-content:flex-end;
  margin:0 0 28px;
}
.langswitch button{
  font:inherit;
  font-size:13.5px;
  font-weight:600;
  color:var(--text-dim);
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:999px;
  padding:5px 14px;
  cursor:pointer;
}
.langswitch button:hover{ color:var(--text); }
.langswitch button[aria-current="true"]{
  color:var(--bg);
  background:var(--accent);
  border-color:var(--accent);
}

footer{
  margin-top:48px;
  padding-top:18px;
  border-top:1px solid var(--border);
  font-size:13.5px;
  color:var(--text-dim);
}
footer a{ text-decoration:none; }
footer a:hover{ text-decoration:underline; }
footer .sep{ opacity:.5; margin:0 8px; }

[hidden]{ display:none !important; }
