/* AppFactory Public Sites — Sopra Steria Brand Guidelines */

@import url('https://fonts.googleapis.com/css2?family=Tahoma&display=swap');

:root {
  /* Primary brand colours (from guidelines p.15) */
  --sopra-dark-purple: #1d1d1b;
  --sopra-light-purple: #2A1A49;
  --sopra-red: #ED0000;
  --sopra-orange: #E86A10;

  /* Brand gradient (purple → red → orange, per guidelines p.17) */
  --brand-gradient: linear-gradient(135deg, #2A1A49 0%, #5C1A6E 25%, #C2185B 50%, #ED0000 70%, #E86A10 100%);

  /* Neutrals */
  --text-primary: #1d1d1b;
  --text-secondary: #4a4a4a;
  --text-muted: #717171;
  --bg-surface: #ffffff;
  --bg-subtle: #f8f8f8;
  --border: #e5e5e5;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Hurme Geometric Sans 3', Tahoma, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  background: var(--bg-subtle);
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   HEADER — brand gradient
   ============================================ */

.site-header {
  background: var(--brand-gradient);
  padding: 3.5rem 1.5rem 3rem;
  text-align: center;
  position: relative;
}

.header-content {
  max-width: 860px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.logo svg {
  width: 48px;
  height: 48px;
}

.logo-text {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.logo-text span {
  color: rgba(255, 255, 255, 0.85);
}

.site-header h1 {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 400;
  opacity: 0.9;
  margin-top: 0.25rem;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.content {
  max-width: 860px;
  margin: 2rem auto 3rem;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.card {
  background: var(--bg-surface);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.card h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.card p, .card li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.card p + p {
  margin-top: 0.75rem;
}

/* ============================================
   FAQ
   ============================================ */

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-question {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--sopra-red);
  font-weight: 300;
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.open .faq-question::after {
  content: '\2212';
}

.faq-answer {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

/* ============================================
   PRIVACY SPECIFIC
   ============================================ */

.policy-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.section-list {
  list-style: none;
  padding: 0;
}

.section-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.section-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sopra-red);
}

.highlight-box {
  background: linear-gradient(135deg, rgba(237, 0, 0, 0.04) 0%, rgba(232, 106, 16, 0.04) 100%);
  border-left: 3px solid var(--sopra-red);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}

.highlight-box p {
  font-size: 0.9rem;
  color: var(--text-primary);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 0.75rem 0;
}

.data-table th {
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  padding: 0.6rem 0.75rem;
  border-bottom: 2px solid var(--border);
  font-size: 0.85rem;
}

.data-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

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

/* ============================================
   CONTACT BOX
   ============================================ */

.contact-box {
  background: var(--bg-subtle);
  border-radius: 8px;
  padding: 1.25rem;
  margin-top: 0.75rem;
}

.contact-box p {
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.contact-box a {
  color: var(--sopra-red);
  text-decoration: none;
}

.contact-box a:hover {
  text-decoration: underline;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.site-footer a {
  color: var(--sopra-red);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}

/* ============================================
   LANGUAGE TOGGLE
   ============================================ */

.lang-toggle {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  display: flex;
  gap: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.lang-btn {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.65);
  transition: all 0.2s;
  letter-spacing: 0.02em;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
}

.lang-btn.active {
  background: rgba(255, 255, 255, 0.95);
  color: var(--sopra-light-purple);
}

[lang="no"] [data-lang="en"]:not(.lang-btn),
[lang="en"] [data-lang="no"]:not(.lang-btn) {
  display: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 640px) {
  .site-header {
    padding: 2rem 1rem 1.75rem;
  }

  .logo-text {
    font-size: 1.35rem;
  }

  .site-header h1 {
    font-size: 1.15rem;
  }

  .content {
    padding: 0 1rem;
  }

  .card {
    padding: 1.5rem;
  }

  .policy-meta {
    flex-direction: column;
    gap: 0.25rem;
  }

  .data-table {
    font-size: 0.8rem;
  }

  .data-table th,
  .data-table td {
    padding: 0.5rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
  }

  .lang-toggle {
    top: 0.75rem;
    right: 0.75rem;
  }

  .lang-btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
  }
}
