/* ═══════════════════════════════════════════════
   LEGAL.CSS – Rätsel-aktuell.de
   Styles für Impressum & Datenschutzerklärung
   ═══════════════════════════════════════════════ */

:root {
  --red-light: #FFE6E6;
  --text:   #1a1a2e;
  --muted:  #555;
  --border: #f0cccc;
  --bg:     #fffbfb;
  --white:  #ffffff;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
}

.logo-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.logo-bar-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-bar img {
  height: 42px;
  width: auto;
  display: block;
}

.logo-bar-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--red-dark);
  letter-spacing: .02em;
}

h1 .mobile {
  display: none;
}
@media (max-width: 600px) {
  h1 .mobile {
    display: inline;
    white-space: normal !important;
  }
}

.logo-bar-tagline {
  font-size: .78rem;
  color: var(--muted);
  text-align: right;
}

header {
  background: var(--red-dark);
  color: #fff;
}

.header-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: .85rem;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 4px;
  padding: 5px 12px;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}

.back-btn:hover {
  color: #fff;
  border-color: rgba(255,255,255,.6);
}

.header-title {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.header-sub {
  font-size: .8rem;
  color: rgba(255,255,255,.65);
  margin-top: 2px;
}

main {
  max-width: 860px;
  margin: 40px auto 80px;
  padding: 0 24px;
}

.toc {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 32px;
  margin-bottom: 28px;
}

.toc h2 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--red-dark);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 14px;
}

.toc ol {
  padding-left: 20px;
}

.toc li {
  margin-bottom: 5px;
}

.toc a {
  color: var(--red-main);
  text-decoration: none;
  font-size: .95rem;
}

.toc a:hover {
  text-decoration: underline;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 40px 48px;
  margin-bottom: 28px;
}

@media (max-width: 600px) {
  .card { padding: 28px 22px; }
  .toc { padding: 22px 20px; }
}

h1 {
  font-size: 1.9rem;
  color: var(--red-dark);
  margin-bottom: 6px;
}

h1 + .intro {
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 32px;
}

h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--red-dark);
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
  scroll-margin-top: 20px;
}

h2:first-of-type {
  margin-top: 0;
}

h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 22px 0 8px;
}

p {
  margin-bottom: .9em;
}

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

a {
  color: var(--red-main);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.desktop { display: inline !important; }
.mobile { display: none !important; white-space: nowrap; }

.header-title .mobile { display: none; }
@media (max-width: 600px) {
  .header-title .desktop { display: none; }
  .header-title .mobile { display: inline; white-space: normal; }
}

@media (max-width: 600px) {
  .desktop { display: none !important; }
  .mobile { display: inline !important; }
}

ul {
  padding-left: 22px;
  margin-bottom: .9em;
}

ul li {
  margin-bottom: .3em;
}

.highlight {
  background: var(--red-light);
  border-left: 4px solid var(--red-main);
  border-radius: 0 6px 6px 0;
  padding: 14px 18px;
  font-size: .93rem;
  margin: 16px 0;
}

.optout-box {
  background: #fff8e6;
  border: 1px solid #f0d080;
  border-radius: 8px;
  padding: 16px 20px;
  margin-top: 14px;
  font-size: .9rem;
}

.optout-box p {
  margin-bottom: .5em;
}

.optout-iframe {
  margin-top: 14px;
}

.rights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

@media (max-width: 560px) {
  .rights-grid { grid-template-columns: 1fr; }
}

.right-item {
  background: var(--red-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
}

.right-item strong {
  display: block;
  color: var(--red-dark);
  margin-bottom: 4px;
  font-size: .95rem;
}

.right-item span {
  font-size: .88rem;
  color: var(--muted);
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .97rem;
}

.info-table tr {
  border-bottom: 1px solid var(--border);
}

.info-table tr:last-child {
  border-bottom: none;
}

.info-table th {
  text-align: left;
  font-weight: 600;
  color: var(--red-dark);
  width: 220px;
  padding: 10px 16px 10px 0;
  vertical-align: top;
}

.info-table td {
  padding: 10px 0;
  vertical-align: top;
}

@media (max-width: 520px) {
  .info-table, .info-table tbody, .info-table tr, .info-table th, .info-table td { display: block; }
  .info-table th { font-size: .8rem; color: var(--muted); padding: 10px 0 2px; }
  .info-table td { padding: 0 0 10px; }
}

footer {
  text-align: center;
  font-size: .8rem;
  color: var(--muted);
  padding: 20px 24px 40px;
}

footer a {
  color: var(--muted);
}

footer a:hover {
  color: var(--red-main);
}

.footer-sep {
  margin: 0 8px;
}
