:root {
  --brand: #7f1d1d;
  --brand-strong: #991b1b;
  --brand-soft: #fef2f2;
  --brand-line: rgba(127, 29, 29, 0.14);
  --surface: #ffffff;
  --surface-soft: #faf8f6;
  --text: #1f2937;
  --text-strong: #111827;
  --muted: #6b7280;
  --border: rgba(17, 24, 39, 0.09);
  --shadow: 0 18px 40px rgba(17, 24, 39, 0.09);
  --radius: 20px;
  --focus: #b91c1c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 420px at 0% 0%, rgba(127, 29, 29, 0.08), transparent 60%),
    radial-gradient(900px 520px at 100% 0%, rgba(120, 113, 108, 0.10), transparent 58%),
    linear-gradient(180deg, var(--surface-soft), #f3f0ec);
  min-height: 100vh;
  padding: 24px;
}

.page-wrap {
  width: min(920px, 100%);
  margin: 0 auto;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.accent {
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--brand), #b45309, #7f1d1d);
}

.header {
  padding: 22px 22px 18px;
  background: linear-gradient(180deg, #ffffff 0%, var(--surface-soft) 100%);
  display: flex;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.logo {
  width: 64px;
  min-width: 64px;
  height: 64px;
  min-height: 64px;
  flex: 0 0 64px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f9f6f2);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.brand {
  min-width: 0;
}

.brand h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  color: var(--text-strong);
}

.brand p {
  margin: 6px 0 0;
  font-size: 15px;
  color: var(--muted);
}

.brand a,
.content a,
.footer a,
.dps_text a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

.brand a:hover,
.content a:hover,
.footer a:hover,
.dps_text a:hover {
  text-decoration: underline;
}

.content {
  padding: 24px 22px 28px;
}

.legal-intro {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.content h2,
.content h3 {
  color: var(--text-strong);
}

.content h2 {
  margin: 32px 0 12px;
  font-size: 22px;
}

.content h3 {
  margin: 24px 0 10px;
  font-size: 18px;
}

.content p,
.content li {
  font-size: 15px;
  line-height: 1.7;
}

.content ul {
  padding-left: 20px;
}

.legal-box {
  margin-top: 20px;
  padding: 18px 18px;
  border-radius: 16px;
  border: 1px solid var(--brand-line);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,245,244,0.98));
}

.footer {
  padding: 16px 22px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.footer small {
  color: var(--muted);
}

.footer-links {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
}

.dps_page {
  background-color: transparent;
}

h1.dps_title {
  color: var(--brand) !important;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  font-size: 28px !important;
  line-height: 1.2;
  margin: 0 0 20px;
}

h2.dps_introduction,
h2.dps_category,
h2.dps_appendix,
h2.dps_dpoinfoneeded,
h2.dps_cookiesfound,
h2.dps_servicesfound,
h2.dps_thirdcountryfound,
h2.dps_always,
h2.dps_optional,
h2.dps_application,
h2.dps_host,
h2.dps_formtype {
  color: var(--brand) !important;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  font-size: 21px !important;
}

h2.dps_application {
  font-size: 18px !important;
}

div.dps_text,
div.dps_text span,
div.dps_text p,
div.dps_text li,
table.cookieTable {
  color: var(--text) !important;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  font-size: 15px !important;
  line-height: 1.7;
}

div.dps_text a {
  color: var(--brand) !important;
}

h2.dps_introduction,h2.dps_category,h2.dps_appendix,h2.dps_dpoinfoneeded,h2.dps_cookiesfound,h2.dps_servicesfound,h2.dps_thirdcountryfound,h2.dps_always,h2.dps_optional,h2.dps_application,h2.dps_host,h2.dps_formtype {
  margin: 10px 0;
  margin-top: 40px;
  font-weight: 600;
}

h2.dps_application {
  margin: 10px 0;
  margin-top: 20px;
}

table.cookieTable {
  width: 100%;
  table-layout: fixed;
  margin-bottom: 10px;
}

table.cookieTable th {
  text-align: left;
  font-weight: 600;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
  overflow: hidden;
  padding: 4px 0;
  border-bottom: 1px solid #aaa;
}

table.cookieTable td {
  vertical-align: top;
  text-align: left;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
  overflow: hidden;
  position: relative;
  padding: 4px 0;
}

table.cookieTable td p {
  margin: 0 0 10px 0;
}

table.cookieTable td:nth-child(4),
table.cookieTable th:nth-child(4) {
  width: 50%;
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  body {
    padding: 16px;
  }

  .header {
    padding: 18px;
  }

  .brand h1 {
    font-size: 24px;
  }

  .content {
    padding: 20px 18px 22px;
  }

  .logo {
    width: 56px;
    min-width: 56px;
    height: 56px;
    min-height: 56px;
    flex: 0 0 56px;
  }
}
