/* =============================================
   HEADER & FOOTER SHARED STYLES
   Extracted from style.css — edit only here.
   ============================================= */

/* =============================================
   RESET & BASE
   ============================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background-color: #f1f3f4;
  color: #202124;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.hidden {
  display: none !important;
}

/* =============================================
   UTILITY BUTTONS
   ============================================= */
.btn-primary {
  display: inline-block;
  background-color: #4285f4;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  text-align: center;
  font-family: "Inter", sans-serif;
}
.btn-primary:hover {
  background-color: #185abc;
}

.btn-outline {
  display: inline-block;
  background-color: transparent;
  color: #4285f4;
  border: 1px solid #4285f4;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  text-align: center;
  font-family: "Inter", sans-serif;
}
.btn-outline:hover {
  background-color: rgba(66, 133, 244, 0.05);
}

.btn-green {
  display: inline-block;
  background-color: #34a853;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
  text-align: center;
  font-family: "Inter", sans-serif;
}
.btn-green:hover {
  opacity: 0.9;
}

.btn-white {
  display: inline-block;
  background-color: #ffffff;
  color: #185abc;
  border: none;
  border-radius: 9999px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  font-family: "Inter", sans-serif;
}
.btn-white:hover {
  background-color: #f3f4f6;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 8px;
}

.btn-full {
  width: 100%;
  display: block;
  padding: 12px;
  margin-top: 32px;
  font-size: 14px;
  border-radius: 8px;
  text-align: center;
  font-family: "Inter", sans-serif;
}

.btn-rounded {
  border-radius: 9999px;
  padding: 14px 32px;
  font-size: 16px;
}

.flex-1 {
  flex: 1;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar-header {
  position: sticky;
  top: 0;
  z-index: 99;
  padding: 12px 24px;
  background-color: #ffffff;
  border-bottom: 2px solid #f1f3f4;
}

@media (min-width: 768px) {
  .navbar-header {
    padding: 12px 48px;
  }
}

.navbar-container {
  max-width: 1152px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
}

.navbar-logo {
  display: flex;
  align-items: center;
}

.navbar-logo-img {
  height: 70px;
  width: auto;
  object-fit: contain;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 32px;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-link {
  color: #5f6368;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.2s;
}
.nav-link:hover {
  color: #4285f4;
}

.nav-actions-desktop {
  display: none;
  align-items: center;
  gap: 12px;
}

@media (min-width: 768px) {
  .nav-actions-desktop {
    display: flex;
  }
}

.hamburger-btn {
  display: flex;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: #202124;
}

@media (min-width: 768px) {
  .hamburger-btn {
    display: none;
  }
}

.hamburger-icon {
  width: 24px;
  height: 24px;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
  padding-bottom: 8px;
  border-top: 1px solid #dadce0;
  margin-top: 12px;
}

.mobile-menu.flex {
  display: flex;
}

.mobile-nav-link {
  color: #5f6368;
  font-weight: 500;
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.2s;
}
.mobile-nav-link:hover {
  color: #4285f4;
}

.mobile-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background-color: #202124;
  color: #ffffff;
  padding: 48px 24px;
  border-top: 1px solid #3c4043;
}

.footer-inner {
  max-width: 1152px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: 2fr 4fr;
    gap: 48px;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.footer-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.footer-tagline {
  font-size: 14px;
  color: #9ca3af;
  line-height: 1.6;
  max-width: 360px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #9ca3af;
  margin-top: 8px;
}

.social-link {
  color: #9ca3af;
  transition: color 0.2s;
}
.social-link:hover {
  color: #ffffff;
}

.social-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

@media (min-width: 640px) {
  .footer-links-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #e5e7eb;
}

.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}

.footer-link {
  font-size: 14px;
  color: #9ca3af;
  transition: color 0.2s;
  display: block;
  padding: 2px 0;
}
.footer-link:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(75, 85, 99, 0.6);
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-disclaimer {
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.6;
  max-width: 640px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #9ca3af;
  gap: 8px 8px;
}

.footer-legal-link {
  color: #9ca3af;
  transition: color 0.2s;
}
.footer-legal-link:hover {
  color: #ffffff;
}

/* =============================================
   SECTION: HOW IT WORKS (PROCESS STEPS)
   ============================================= */
.section-process-steps {
  padding: 80px 24px;
  background: linear-gradient(
    #ffffff 0%,
    #f1f3f4 15%,
    #f1f3f4 85%,
    #ffffff 100%
  );
}

.process-inner {
  max-width: 1152px;
  margin: 0 auto;
  text-align: center;
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  text-align: left;
  position: relative;
}

@media (min-width: 768px) {
  .process-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.process-card {
  background: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.process-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.process-step-num {
  font-size: 30px;
  font-weight: 700;
  color: #9ca3af;
  margin-bottom: 12px;
  user-select: none;
  line-height: 1;
}

.process-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #202124;
  margin-bottom: 8px;
}

.process-card-desc {
  font-size: 14px;
  color: #5f6368;
  line-height: 1.65;
}

/* =============================================
   SECTION: REAL EXAMPLE
   ============================================= */
.section-real-example {
  padding: 80px 24px;
  background: linear-gradient(
    #ffffff 0%,
    #f1f3f4 25%,
    #f1f3f4 75%,
    #ffffff 100%
  );
}

.real-example-inner {
  max-width: 1152px;
  margin: 0 auto;
}

.real-example-card {
  background-color: #185abc;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .real-example-card {
    padding: 48px;
  }
}

.real-example-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 768px) {
  .real-example-grid {
    grid-template-columns: 7fr 5fr;
    gap: 48px;
  }
}

.real-example-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fbbc04;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.real-example-title {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .real-example-title {
    font-size: 28px;
  }
}

.real-example-desc {
  font-size: 15px;
  color: #e5e7eb;
  line-height: 1.7;
}

.real-example-checklist {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.checklist-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #e6f4ea;
  color: #34a853;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.checklist-icon svg {
  width: 14px;
  height: 14px;
}

.checklist-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.checklist-desc {
  font-size: 12px;
  color: #e5e7eb;
  line-height: 1.5;
}

/* =============================================
   USER MENU DROPDOWN (authenticated header)
   ============================================= */
.user-menu {
  position: relative;
}

.user-menu-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1.5px solid #dadce0;
  border-radius: 100px;
  cursor: pointer;
  padding: 5px 10px 5px 5px;
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
  color: #202124;
}

.user-menu-btn:hover {
  border-color: #4285f4;
  box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.12);
}

.user-avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #4285f4;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
  overflow: hidden;
}

.user-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.user-menu-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  overflow: hidden;
  animation: dropdownFadeIn 0.15s ease;
  padding: 6px;
}

.user-menu-dropdown.open {
  display: block;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 14px;
  color: #202124;
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  transition: background 0.12s;
  border-radius: 8px;
}

.user-menu-item:hover {
  background: #f1f3f4;
  color: #202124;
}

.user-menu-divider {
  border: none;
  border-top: 1px solid #f1f3f4;
  margin: 4px 0;
}

.user-menu-logout {
  color: #d93025;
}

.user-menu-logout:hover {
  background: #fff0ef;
  color: #d93025;
}

/* ─── Auth-aware nav: simple Account link ─────────────────────────────────── */
.nav-account-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #5f6368;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-account-link:hover {
  color: #4285f4;
}

/* ─── First name label inside nav avatar button ───────────────────────────── */
.user-menu-firstname {
  font-size: 13px;
  font-weight: 500;
  color: #202124;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════════════════
   COOKIE CONSENT BANNER
   ═══════════════════════════════════════════════════════════════════════════ */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #ffffff;
  border-top: 1px solid #e8eaed;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: "Inter", sans-serif;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
#cookie-banner.cookie-banner--visible {
  transform: translateY(0);
}
#cookie-banner.cookie-banner--hidden {
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-banner__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-banner__body {
  flex: 1;
  min-width: 0;
}
.cookie-banner__title {
  font-size: 13px;
  font-weight: 700;
  color: #202124;
  margin-bottom: 2px;
}
.cookie-banner__text {
  font-size: 12px;
  color: #5f6368;
  line-height: 1.5;
  margin: 0;
}
.cookie-banner__text a {
  color: #4285f4;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner__text a:hover {
  color: #185abc;
}
.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.cookie-btn-accept {
  background: #4285f4;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  white-space: nowrap;
  transition: background 0.2s;
}
.cookie-btn-accept:hover {
  background: #185abc;
}
.cookie-btn-decline {
  background: transparent;
  color: #5f6368;
  border: 1px solid #dadce0;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  white-space: nowrap;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.cookie-btn-decline:hover {
  border-color: #5f6368;
  color: #202124;
}
.cookie-btn-manage {
  background: transparent;
  color: #4285f4;
  border: none;
  padding: 8px 4px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-btn-manage:hover {
  color: #185abc;
}

/* ── Manage / preferences modal ─────────────────────────────────────────── */
#cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(32, 33, 36, 0.45);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
#cookie-modal-overlay.cookie-modal--open {
  opacity: 1;
  pointer-events: auto;
}
#cookie-modal {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  font-family: "Inter", sans-serif;
}
.cookie-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
}
.cookie-modal__header h2 {
  font-size: 16px;
  font-weight: 700;
  color: #202124;
}
.cookie-modal__close {
  background: none;
  border: none;
  cursor: pointer;
  color: #5f6368;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.cookie-modal__close:hover {
  background: #f1f3f4;
}
.cookie-modal__body {
  padding: 16px 24px;
}
.cookie-modal__intro {
  font-size: 13px;
  color: #5f6368;
  line-height: 1.55;
  margin-bottom: 18px;
}
.cookie-modal__intro a {
  color: #4285f4;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-category {
  border: 1px solid #e8eaed;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.cookie-category__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.cookie-category__info {
}
.cookie-category__name {
  font-size: 13px;
  font-weight: 600;
  color: #202124;
  margin-bottom: 3px;
}
.cookie-category__desc {
  font-size: 12px;
  color: #5f6368;
  line-height: 1.5;
  margin: 0;
}
/* Toggle switch */
.cookie-toggle {
  position: relative;
  flex-shrink: 0;
  width: 40px;
  height: 22px;
}
.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.cookie-toggle__track {
  position: absolute;
  inset: 0;
  background: #dadce0;
  border-radius: 22px;
  cursor: pointer;
  transition: background 0.2s;
}
.cookie-toggle input:checked + .cookie-toggle__track {
  background: #4285f4;
}
.cookie-toggle input:disabled + .cookie-toggle__track {
  background: #4285f4;
  opacity: 0.6;
  cursor: not-allowed;
}
.cookie-toggle__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.cookie-toggle input:checked + .cookie-toggle__track::after {
  transform: translateX(18px);
}
.cookie-modal__footer {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 0 24px 20px;
  border-top: 1px solid #f1f3f4;
  padding-top: 16px;
  margin-top: 4px;
}
.cookie-modal__save {
  background: #4285f4;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  transition: background 0.2s;
}
.cookie-modal__save:hover {
  background: #185abc;
}
.cookie-modal__accept-all {
  background: transparent;
  color: #4285f4;
  border: 1px solid #4285f4;
  border-radius: 8px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  transition: background 0.2s;
}
.cookie-modal__accept-all:hover {
  background: rgba(66, 133, 244, 0.05);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  #cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px;
    gap: 12px;
  }
  .cookie-banner__actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .cookie-btn-accept,
  .cookie-btn-decline {
    flex: 1;
  }
  .cookie-btn-manage {
    width: 100%;
    text-align: center;
  }
}

/* ── Cookie history notice (audit page) ─────────────────────────────────── */
.cookie-history-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fff8e1;
  border: 1px solid #f5c27a;
  border-radius: 10px;
  padding: 12px 14px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: #5f4000;
  line-height: 1.5;
  animation: noticeSlideIn 0.3s ease;
}
@keyframes noticeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.cookie-history-notice__icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  color: #e6a817;
}
.cookie-history-notice__text {
  flex: 1;
}
.cookie-history-notice__btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  font-family: "Inter", sans-serif;
  color: #4285f4;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}
.cookie-history-notice__btn:hover {
  color: #185abc;
}
.cookie-history-notice__close {
  background: none;
  border: none;
  cursor: pointer;
  color: #c8860a;
  flex-shrink: 0;
  padding: 2px;
  display: flex;
  align-items: center;
  border-radius: 4px;
  transition: background 0.15s;
}
.cookie-history-notice__close:hover {
  background: rgba(0, 0, 0, 0.06);
}

/* ── Footer Cookie Settings button ─────────────────────────────────────── */
.footer-cookie-settings-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
  color: #9aa0a6;
  cursor: pointer;
  transition: color 0.15s;
}
.footer-cookie-settings-btn:hover {
  color: #ffffff;
}
