:root {
  --navy: #0a1f44;
  --gold: #c5a572;
  --dark-gold: #a68759;
  --light-gray: #f8f9fa;
  --mid-gray: #e9ecef;
  --text-dark: #1a1a1a;
  --text-light: #6c757d;
  --white: #ffffff;
  --header-height: 88px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header */
header {
  position: sticky;
  top: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 31, 68, 1) 0%,
    rgba(10, 31, 68, 0.95) 60%
  );
  color: var(--white);
  height: var(--header-height);
  display: flex;
  align-items: center;
  z-index: 60;
  box-shadow: 0 6px 18px rgba(10, 31, 68, 0.12);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 8px 20px;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
}
.brand h1 {
  font-family: "Playfair Display", serif;
  font-size: 18px;
  letter-spacing: 0.6px;
  color: var(--gold);
  margin-bottom: 2px;
}
.brand p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
}

nav .site-note {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  font-size: 14px;
}

.container {
  max-width: 1200px;
  margin: 28px auto;
  padding: 0 20px;
}
.hero {
  background: linear-gradient(
    180deg,
    rgba(231, 166, 62, 0.06),
    rgba(0, 0, 0, 0)
  );
  border-radius: 12px;
  display: flex;
  gap: 20px;
  align-items: center;
}
.hero h2 {
  font-family: "Playfair Display", serif;
  color: var(--navy);
  font-size: 28px;
  line-height: 1.05;
}
.hero p {
  color: var(--text-light);
  font-size: 15px;
  max-width: 720px;
}

/* content layout */
.policy-wrapper {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  margin-top: 24px;
  align-items: start;
}

/* sidebar: sticky and visually static while content scrolls */
.side {
  background: var(--light-gray);
  padding: 18px;
  border-radius: 10px;
  align-self: start;
  position: -webkit-sticky;
  position: sticky;
  top: calc(var(--header-height) + 20px);
  /* keep menu visible — do not create its own scrollbar */
  height: calc(100vh - var(--header-height) - 60px);
  max-height: calc(100vh - var(--header-height) - 360px);
  overflow: visible;
  border-width: 1px;
  border: solid var(--dark-gold);
}
.side nav ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.side a {
  display: block;
  color: var(--navy);
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.side a:hover {
  background: rgba(10, 31, 68, 0.04);
}
.side a.active {
  background: linear-gradient(90deg, var(--gold), var(--dark-gold));
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(166, 138, 89, 0.12);
}

/* main article */
section.content-wrap {
  min-height: 520px;
}
article {
  background: #fff;
  padding: 26px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(19, 31, 53, 0.04);
  border: 1px solid var(--dark-gold);
}
article h3 {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 10px;
}
article h4 {
  color: var(--navy);
  margin-top: 18px;
  margin-bottom: 8px;
  font-size: 16px;
}
article p,
article li {
  color: var(--text-dark);
  font-size: 15px;
}
article ul {
  margin-left: 18px;
  list-style: disc;
  margin-top: 8px;
}

.meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.meta .tag {
  background: var(--mid-gray);
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 600;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 14px;
}
.cookie-table th,
.cookie-table td {
  border: 1px solid var(--mid-gray);
  padding: 10px;
  text-align: left;
}
.cookie-table th {
  background: var(--light-gray);
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--navy);
  color: var(--navy);
}
.btn-outline:hover .fas.fa-arrow-right {
  transform: rotate(-45deg);
  transition: transform 0.3s ease;
}

footer {
  margin-top: 28px;
  padding: 22px;
  border-top: 1px solid var(--mid-gray);
  text-align: center;
  color: var(--text-light);
}

/* cookie modal */
.modal {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(2, 10, 25, 0.12);
  width: 360px;
  max-width: calc(100% - 36px);
  z-index: 90;
  border: 1px solid var(--mid-gray);
  overflow: hidden;
}
.modal header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: linear-gradient(90deg, var(--gold), var(--dark-gold));
  color: var(--white);
}
.modal .body {
  padding: 14px;
}
.toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--mid-gray);
}
.switch {
  width: 46px;
  height: 26px;
  background: var(--mid-gray);
  border-radius: 20px;
  position: relative;
  cursor: pointer;
}
.knob {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: all 0.18s ease;
}
.on {
  background: var(--navy);
}
.on .knob {
  left: 23px;
}

/* responsive */
@media (max-width: 1000px) {
  :root {
    --header-height: 92px;
  }
  .policy-wrapper {
    grid-template-columns: 240px 1fr;
    gap: 20px;
  }
  .side {
    top: calc(var(--header-height) + 16px);
  }
}

@media (max-width: 880px) {
  .policy-wrapper {
    grid-template-columns: 1fr;
  }
  .side {
    position: relative;
    top: 0;
    height: auto;
    padding-bottom: 0;
  }
  .side nav ul {
    flex-direction: row;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
  }
  .side a {
    white-space: nowrap;
    font-size: 14px;
    padding: 8px 10px;
  }
  article {
    padding: 18px;
  }
  .hero {
    padding: 18px;
  }
}

/* print styles — print only article content */
@media print {
  header,
  .side,
  .actions,
  footer,
  .modal {
    display: none !important;
  }
  body {
    background: #fff;
  }
  article {
    box-shadow: none;
    border-radius: 0;
  }
}
