/* Trust center, styled like the Advodata application itself (house style: brand blue, frosted-glass cards on a soft
   blue background, pill chips). Keep the tokens in step with src/AdvodataWeb/wwwroot/css/_variables.css and with
   src/StatusPage.Web/wwwroot/status.css. No webfonts: the content security policy allows fonts and images from this
   origin only, so the logo is a local file and the type is the system's. */

:root {
  color-scheme: light dark;

  /* Brand (same values as the application) */
  --brand: #2d7ab5; --brand-light: #4a9fd5; --brand-lighter: #b3ddf2; --brand-dark: #1e5f8f; --brand-darker: #154f78;

  /* Surfaces and text */
  --fg: #2c3e50; --muted: #5f6f7f; --line: rgba(45, 122, 181, 0.16);
  --page-1: #e9f1f8; --page-2: #dcecfa; --page-3: #d6e8f8;
  --glass: rgba(255, 255, 255, 0.72); --glass-border: rgba(255, 255, 255, 0.7); --glass-blur: 12px;
  --shadow: 0 2px 8px rgba(42, 100, 150, 0.07), 0 0 1px rgba(42, 100, 150, 0.08);
  --shadow-lift: 0 10px 30px rgba(21, 79, 120, 0.14);
  --chip-statement: #1e5f8f; --chip-statement-bg: rgba(45, 122, 181, 0.14);
  --chip-subprocessor: #7d3c98; --chip-subprocessor-bg: rgba(155, 89, 182, 0.15);
  --chip-document: #1e8449; --chip-document-bg: rgba(39, 174, 96, 0.14);
  --chip-faq: #b7791f; --chip-faq-bg: rgba(243, 156, 18, 0.18);
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #e6eef6; --muted: #9db0c2; --line: rgba(180, 215, 240, 0.16);
    --page-1: #0c1e30; --page-2: #0f2a43; --page-3: #123552;
    --glass: rgba(20, 44, 68, 0.66); --glass-border: rgba(150, 195, 230, 0.16);
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.28); --shadow-lift: 0 12px 32px rgba(0, 0, 0, 0.4);
    --chip-statement: #8cc4ee; --chip-statement-bg: rgba(74, 159, 213, 0.22);
    --chip-subprocessor: #cf9be0; --chip-subprocessor-bg: rgba(155, 89, 182, 0.24);
    --chip-document: #7fd3a1; --chip-document-bg: rgba(39, 174, 96, 0.22);
    --chip-faq: #f5c36b; --chip-faq-bg: rgba(243, 156, 18, 0.22);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0; min-height: 100vh; color: var(--fg);
  font: 16px/1.6 "Roboto Flex", Roboto, "Segoe UI", system-ui, -apple-system, sans-serif;
  background: linear-gradient(160deg, var(--page-1) 0%, var(--page-2) 45%, var(--page-3) 100%) fixed;
}

.skip { position: absolute; left: -999px; }
.skip:focus { left: 0.75rem; top: 0.75rem; z-index: 10; background: var(--glass); padding: 0.5rem 0.8rem; border-radius: 8px; }

/* ---- Hero: brand, language, title -------------------------------------------------------------------------- */
header {
  --gutter: max(1.25rem, calc((100% - 48rem) / 2));
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 1rem;
  padding: 1.1rem var(--gutter) 6.2rem; color: #fff;
  background:
    radial-gradient(48rem 24rem at 10% -20%, rgba(74, 159, 213, 0.55), transparent 62%),
    radial-gradient(36rem 20rem at 100% 120%, rgba(45, 122, 181, 0.55), transparent 60%),
    linear-gradient(160deg, #0f2a43 0%, #154f78 58%, #1e5f8f 100%);
}
.brand { order: 1; display: inline-flex; align-items: center; gap: 0.65rem; color: #fff; text-decoration: none; font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; }
/* The logo is a transparent icon: painted white through a mask, straight on the gradient, no box behind it. */
.brand-mark { width: 38px; height: 38px; background: #fff; -webkit-mask: url("/images/logo.png") center / contain no-repeat; mask: url("/images/logo.png") center / contain no-repeat; }
header nav { order: 2; display: inline-flex; gap: 0.25rem; padding: 0.2rem; border-radius: 999px; background: rgba(255, 255, 255, 0.13); border: 1px solid rgba(255, 255, 255, 0.22); }
header nav a { color: rgba(255, 255, 255, 0.85); text-decoration: none; padding: 0.2rem 0.65rem; border-radius: 999px; font-size: 0.82rem; font-weight: 500; margin: 0; }
header nav a[aria-current="true"] { background: #fff; color: var(--brand-darker); font-weight: 600; text-decoration: none; }
header h1 { order: 3; flex: 1 0 100%; margin: 0.25rem 0 0; font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 650; letter-spacing: -0.025em; line-height: 1.12; }
a { color: var(--brand); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--brand-light); outline-offset: 2px; }

main { max-width: 48rem; margin: -4.2rem auto 0; padding: 0 1.25rem 2.5rem; position: relative; }
main > h1 { margin: 2.5rem 0 0.5rem; }

/* ---- The lead and the disclaimer ---------------------------------------------------------------------------- */
.intro { margin: 0 0 1.1rem; padding: 1.2rem 1.4rem; font-size: 1.08rem; line-height: 1.6; background: var(--glass); border: 1px solid var(--glass-border); border-radius: 16px;
  -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur)); box-shadow: var(--shadow-lift); }

.disclaimer { position: relative; margin: 0 0 1.8rem; padding: 0.2rem 1.3rem 0.6rem 3.6rem; background: var(--glass); border: 1px solid var(--glass-border); border-left: 5px solid var(--brand);
  border-radius: 14px; -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur)); box-shadow: var(--shadow); }
.disclaimer::before { content: "i"; position: absolute; left: 1.15rem; top: 1rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center;
  font: italic 700 0.95rem/1 Georgia, serif; color: #fff; background: var(--brand); }
.disclaimer h2 { border: 0; margin: 0.85rem 0 0.25rem; font-size: 1.02rem; padding: 0; }
.disclaimer p { margin: 0.25rem 0; color: var(--muted); }

/* ---- Sections and items -------------------------------------------------------------------------------------- */
.group { margin: 2rem 0; }
h2 { font-size: 1.25rem; font-weight: 650; letter-spacing: -0.01em; margin: 0 0 0.8rem; padding: 0 0 0 0.85rem; position: relative; border: 0; }
.group > h2::before { content: ""; position: absolute; left: 0; top: 0.18em; bottom: 0.18em; width: 4px; border-radius: 4px; background: linear-gradient(180deg, var(--brand-light), var(--brand-dark)); }
h3 { font-size: 1.08rem; font-weight: 650; margin: 0 0 0.3rem; }

.item { margin: 0 0 0.8rem; padding: 1rem 1.25rem; background: var(--glass); border: 1px solid var(--glass-border); border-radius: 14px;
  -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur)); box-shadow: var(--shadow); transition: box-shadow 0.15s ease, transform 0.15s ease; }
.item:hover { box-shadow: var(--shadow-lift); transform: translateY(-1px); }
.item p { margin: 0.35rem 0; }
.kind { display: inline-block; margin: 0 0 0.35rem; padding: 0.08rem 0.65rem; border-radius: 999px; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--chip-statement); background: var(--chip-statement-bg); }
.item-subprocessor .kind { color: var(--chip-subprocessor); background: var(--chip-subprocessor-bg); }
.item-document .kind { color: var(--chip-document); background: var(--chip-document-bg); }
.item-statement { border-top: 3px solid var(--brand-light); }
.item-subprocessor { border-top: 3px solid #9b59b6; }
.item-document { border-top: 3px solid #27ae60; }
.reviewed { color: var(--muted); font-size: 0.84rem; }

a.doc { display: inline-block; padding: 0.45rem 1.05rem; border-radius: 999px; font-weight: 600; font-size: 0.92rem; text-decoration: none; color: #fff; background: var(--brand); box-shadow: 0 1px 4px rgba(74, 159, 213, 0.35); }
a.doc:hover { background: var(--brand-dark); }

details.item { border-top: 3px solid #f39c12; }
details.item summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
details.item summary::-webkit-details-marker { display: none; }
details.item summary::after { content: ""; flex: none; width: 0.55rem; height: 0.55rem; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.15s ease; margin-right: 0.2rem; }
details.item[open] summary::after { transform: rotate(-135deg); }

.empty { margin-top: 2rem; padding: 1.2rem 1.4rem; color: var(--muted); background: var(--glass); border: 1px dashed var(--line); border-radius: 14px; }

footer { max-width: 48rem; margin: 0 auto; padding: 1.4rem 1.25rem 2.5rem; text-align: center; color: var(--muted); font-size: 0.84rem; }
footer p { margin: 0.25rem 0; }

/* ---- Shown instead of the page when there is nothing trustworthy to show ----------------------------------- */
body.unavailable header { padding-bottom: 5rem; }
main.unavailable { margin-top: -3rem; padding: 0 1.25rem 2.5rem; }
main.unavailable > p { padding: 1.2rem 1.4rem; background: var(--glass); border: 1px solid var(--glass-border); border-radius: 16px; box-shadow: var(--shadow-lift); }

@media (max-width: 34rem) {
  header { padding-bottom: 5.4rem; }
  .intro, .item { padding-left: 1rem; padding-right: 1rem; }
  .disclaimer { padding-left: 3.2rem; }
}
@media (prefers-reduced-motion: reduce) { .item, details.item summary::after { transition: none; } .item:hover { transform: none; } }
@media print { header { background: none; color: inherit; padding-bottom: 1rem; } main { margin-top: 0; } .brand, header nav { display: none; } }
