/*
 * Ownership: Danpol Ltd.
 * Code designed and writen by : Daniel Nowakowski
 * File: public_html/privacy/privacy.css
 * Purpose: Standalone privacy notice styling with soft gradients and legible typography.
 */

:root {
  color-scheme: light;
  --ink: #0f172a;
  --muted: #475569;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --surface: #ffffff;
  --card: #f8fafc;
  --border: rgba(15, 23, 42, 0.12);
  --shadow: 0 25px 60px rgba(15, 23, 42, 0.08);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

body.policy-body {
  margin: 0;
  background: linear-gradient(135deg, #e0f2fe, #fdf2f8);
  color: var(--ink);
  line-height: 1.7;
}

.mast {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, 92vw);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.12);
  z-index: 1200;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand img {
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.brand strong,
.brand small {
  color: #0f172a;
}

.brand small {
  display: block;
  font-size: 0.8rem;
  opacity: 0.85;
}

.nav {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  color: #0f172a;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.08);
}

.nav__cta {
  border: 1px solid rgba(15, 23, 42, 0.2);
  color: #0f172a;
  font-weight: 700;
  background: rgba(248, 250, 252, 0.9);
}

.nav__cta:hover,
.nav__cta:focus-visible {
  border-color: rgba(15, 23, 42, 0.45);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.35rem;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
}

.nav-toggle__icon {
  width: 20px;
  height: 2px;
  background: #0f172a;
  position: relative;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: #0f172a;
}

.nav-toggle__icon::before {
  top: -6px;
}

.nav-toggle__icon::after {
  top: 6px;
}

.nav__close {
  display: none;
  align-self: flex-end;
  background: rgba(248, 250, 252, 0.7);
  border: 1px solid rgba(15, 23, 42, 0.2);
  color: #0f172a;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-weight: 600;
}

.nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(148, 163, 184, 0.35);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 900;
}

.policy-body.nav-open .nav__overlay {
  opacity: 1;
  pointer-events: auto;
}

.policy-shell {
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding-bottom: 4rem;
}

.policy-hero {
  padding: 4rem 0 2rem;
  position: relative;
}

.policy-hero::after {
  content: "";
  position: absolute;
  inset: 1rem;
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.15), rgba(236, 72, 153, 0.12));
  filter: blur(60px);
  opacity: 0.7;
  z-index: 0;
}

.policy-hero .policy-shell {
  position: relative;
  z-index: 1;
}

.policy-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  margin-bottom: 0.75rem;
}

.policy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
}

.policy-meta span {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.policy-card {
  background: var(--surface);
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-top: 2rem;
}

.policy-card h2 {
  margin-top: 0;
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.data-grid article {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
  background: var(--card);
}

.data-grid h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.25rem;
  font-size: 0.95rem;
}

.data-table th,
.data-table td {
  border: 1px solid rgba(15, 23, 42, 0.1);
  padding: 0.75rem;
  text-align: left;
}

.data-table th {
  background: var(--accent-soft);
}

.rights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.rights-grid article {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  background: var(--card);
}

.contact-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: var(--accent-soft);
}

.copy-btn {
  border: none;
  border-radius: 999px;
  background: #db2777;
  color: #fff;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  cursor: pointer;
}

.copy-btn:focus-visible {
  outline: 3px solid #f9a8d4;
  outline-offset: 2px;
}

.accordion {
  margin-top: 2rem;
}

.accordion details {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
}

.accordion summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.accordion summary::marker,
.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.accordion p {
  margin: 0.75rem 0 0;
}

.site-footer {
  margin-top: 3rem;
  padding: 2rem 0 3rem;
  background: #0f172a;
  color: #e2e8f0;
}

.site-footer .shell {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.site-footer a {
  color: #bfdbfe;
  text-decoration: none;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

@media (max-width: 900px) {
  .mast {
    top: 0.75rem;
    width: min(100%, 94vw);
    padding: 0.5rem 0.85rem;
  }

  .nav {
    position: fixed;
    inset: 0 0 auto 0;
    transform: translateY(-120%);
    flex-direction: column;
    padding: 5rem 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(15, 23, 42, 0.1);
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 1000;
  }

  .nav.is-open {
    transform: translateY(0);
  }

  .nav-toggle {
    display: inline-flex;
    position: static;
    margin-left: auto;
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.25);
  }

  .nav__close {
    display: inline-flex;
    margin-bottom: 1rem;
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.25);
    background: rgba(255, 255, 255, 0.65);
  }
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.badge {
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: 0.85rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
}

@media (max-width: 640px) {
  .policy-card {
    padding: 1.5rem;
  }

  .policy-meta span {
    width: 100%;
    justify-content: center;
  }

  .contact-panel {
    flex-direction: column;
    text-align: center;
  }
}
