:root {
  --ms-blue: #0b4778;
  --ms-blue-dark: #082f50;
  --ms-gold: #d9a24a;
  --ms-light: #f5f8fb;
  --ms-text: #263445;
  --ms-muted: #6c7785;
  --ms-white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--ms-text);
  background: #fff;
}

a {
  text-decoration: none;
}

.ms-navbar {
  top: 20px;
  z-index: 999;
}

.ms-navbar .container {
  background: #fff;
  border-radius: 12px;
  padding: 12px 24px;
  box-shadow: 0 12px 30px rgba(8, 47, 80, 0.12);
}

.nav-logo {
  max-height: 56px;
}

.nav-link {
  color: var(--ms-blue-dark);
  font-weight: 600;
  margin: 0 8px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ms-gold);
}

.btn-ms {
  background: var(--ms-blue);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  border: 1px solid var(--ms-blue);
  padding: 11px 22px;
}

.btn-ms:hover {
  background: var(--ms-blue-dark);
  color: #fff;
  border-color: var(--ms-blue-dark);
}

.hero-section {
  position: relative;
  min-height: 100vh;
  background: url("../img/about.png") center center / cover no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(8, 47, 80, 0.88) 0%,
    rgba(8, 47, 80, 0.68) 45%,
    rgba(8, 47, 80, 0.25) 100%
  );
}

.hero-section h1 {
  color: #fff;
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 24px;
}

.hero-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  line-height: 1.7;
  max-width: 760px;
  margin-bottom: 34px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 700;
  margin: 44px 0 22px auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.section-padding {
  padding: 100px 0;
}

.bg-light-ms {
  background: var(--ms-light);
}

.bg-blue-ms {
  background: linear-gradient(135deg, var(--ms-blue-dark), var(--ms-blue));
}

.section-title {
  text-align: center;
  max-width: 850px;
  margin: 0 auto 55px;
}

.section-title span,
.section-kicker-light {
  color: var(--ms-gold);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 14px;
}

.section-title h2 {
  color: var(--ms-blue-dark);
  font-weight: 800;
  font-size: clamp(30px, 4vw, 46px);
  margin-top: 10px;
}

.about-image-card,
.founder-card {
  background: #fff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 18px 50px rgba(8, 47, 80, 0.12);
  text-align: center;
}

.about-image-card img,
.founder-card img {
  max-height: 520px;
  object-fit: contain;
}

.content-box p,
#founder p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--ms-text);
}

.mini-feature {
  background: var(--ms-light);
  border-radius: 14px;
  padding: 16px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--ms-blue-dark);
}

.mini-feature i {
  color: var(--ms-gold);
  font-size: 24px;
}

.expertise-card,
.service-card,
.contact-card {
  background: #fff;
  border-radius: 20px;
  padding: 34px;
  height: 100%;
  border: 1px solid rgba(8, 47, 80, 0.08);
  box-shadow: 0 14px 35px rgba(8, 47, 80, 0.07);
  transition: all 0.25s ease;
}

.expertise-card:hover,
.service-card:hover,
.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(8, 47, 80, 0.13);
}

.icon-box,
.service-card i,
.contact-card i {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: rgba(11, 71, 120, 0.08);
  color: var(--ms-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 24px;
}

.expertise-card h3,
.service-card h3,
.contact-card h3 {
  color: var(--ms-blue-dark);
  font-weight: 800;
  font-size: 22px;
  margin-bottom: 16px;
}

.expertise-card p,
.service-card p {
  color: var(--ms-muted);
  line-height: 1.7;
}

.expertise-card ul {
  padding-left: 18px;
  margin-bottom: 0;
}

.expertise-card li {
  margin-bottom: 10px;
  color: var(--ms-text);
}

.value-title {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  margin-top: 10px;
}

.value-list {
  display: grid;
  gap: 18px;
}

.value-list div {
  display: flex;
  gap: 14px;
  font-size: 18px;
  line-height: 1.6;
}

.value-list i {
  color: var(--ms-gold);
  font-size: 24px;
  flex: 0 0 auto;
}

.contact-card {
  text-align: center;
}

.contact-card a {
  color: var(--ms-blue);
  font-weight: 700;
}

.footer {
  background: var(--ms-blue-dark);
  color: rgba(255, 255, 255, 0.78);
  padding: 70px 0 25px;
}

.footer-logo {
  max-width: 220px;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 22px;
}

.footer h4 {
  color: #fff;
  font-weight: 800;
  margin-bottom: 18px;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer li {
  margin-bottom: 10px;
}

.footer a {
  color: rgba(255, 255, 255, 0.78);
}

.footer a:hover {
  color: var(--ms-gold);
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 45px;
  padding-top: 22px;
  text-align: center;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  background: var(--ms-blue);
  color: #fff;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  box-shadow: 0 10px 25px rgba(8, 47, 80, 0.25);
}

.back-to-top:hover {
  background: var(--ms-gold);
  color: #fff;
}

@media (max-width: 991px) {
  .ms-navbar {
    top: 10px;
  }

  .ms-navbar .container {
    margin: 0 24px 0 12px;
  }

  .hero-section {
    background-position: center;
  }

  .hero-section h1 {
    margin-top: 80px;
  }

  .section-padding {
    padding: 70px 0;
  }
}

@media (max-width: 575px) {
  .nav-logo {
    max-height: 44px;
  }

  .hero-section p {
    font-size: 17px;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

/* ==============================
   INTERNAL PAGES
============================== */

.page-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background: url("../img/about.png") center center / cover no-repeat;
  padding-top: 120px;
  overflow: hidden;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(8, 47, 80, 0.92) 0%,
    rgba(8, 47, 80, 0.74) 48%,
    rgba(8, 47, 80, 0.28) 100%
  );
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 22px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
  line-height: 1.7;
  max-width: 760px;
}

.service-card-large ul {
  padding-left: 18px;
  margin-top: 20px;
  margin-bottom: 0;
}

.service-card-large li {
  color: var(--ms-text);
  margin-bottom: 9px;
  line-height: 1.5;
}

.process-card {
  background: #fff;
  border-radius: 20px;
  padding: 34px;
  height: 100%;
  border: 1px solid rgba(8, 47, 80, 0.08);
  box-shadow: 0 14px 35px rgba(8, 47, 80, 0.07);
  transition: all 0.25s ease;
}

.process-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(8, 47, 80, 0.13);
}

.process-card span {
  display: inline-flex;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(217, 162, 74, 0.14);
  color: var(--ms-gold);
  font-size: 20px;
  font-weight: 800;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.process-card h3 {
  color: var(--ms-blue-dark);
  font-weight: 800;
  font-size: 22px;
  margin-bottom: 14px;
}

.process-card p {
  color: var(--ms-muted);
  line-height: 1.7;
  margin-bottom: 0;
}

.services-cta {
  background: var(--ms-light);
  padding: 80px 0;
}

.cta-box {
  background: linear-gradient(135deg, var(--ms-blue), var(--ms-blue-dark));
  border-radius: 24px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  box-shadow: 0 24px 60px rgba(8, 47, 80, 0.22);
}

.cta-box span {
  color: var(--ms-gold);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
}

.cta-box h2 {
  color: #fff;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 42px);
  margin: 10px 0 0;
  max-width: 780px;
}

@media (max-width: 991px) {
  .page-hero {
    min-height: 560px;
    padding-top: 140px;
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 575px) {
  .page-hero {
    min-height: 620px;
  }

  .cta-box {
    padding: 32px 24px;
  }

  .cta-box .btn {
    width: 100%;
  }
}

/* ==============================
   CONTACT PAGE
============================== */

.contact-info-panel,
.contact-form-panel {
  background: #fff;
  border-radius: 24px;
  padding: 42px;
  height: 100%;
  border: 1px solid rgba(8, 47, 80, 0.08);
  box-shadow: 0 18px 45px rgba(8, 47, 80, 0.08);
}

.contact-kicker {
  display: inline-flex;
  background: rgba(217, 162, 74, 0.14);
  color: var(--ms-gold);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  margin-bottom: 18px;
}

.contact-info-panel h2,
.contact-form-panel h2 {
  color: var(--ms-blue-dark);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 18px;
}

.contact-info-panel p,
.contact-form-panel p {
  color: var(--ms-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-info-item {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid rgba(8, 47, 80, 0.1);
}

.contact-info-item i {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(11, 71, 120, 0.08);
  color: var(--ms-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex: 0 0 auto;
}

.contact-info-item h3 {
  color: var(--ms-blue-dark);
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
}

.contact-info-item a {
  color: var(--ms-blue);
  font-weight: 700;
  word-break: break-word;
}

.contact-logo-box {
  border-top: 1px solid rgba(8, 47, 80, 0.1);
  margin-top: 20px;
  padding-top: 30px;
}

.contact-logo-box img {
  max-width: 280px;
  width: 100%;
}

.contact-form-panel .form-label {
  font-weight: 700;
  color: var(--ms-blue-dark);
  margin-bottom: 8px;
}

.contact-form-panel .form-control {
  border-radius: 10px;
  border: 1px solid rgba(8, 47, 80, 0.18);
  padding: 13px 15px;
  color: var(--ms-text);
}

.contact-form-panel .form-control:focus {
  border-color: var(--ms-blue);
  box-shadow: 0 0 0 0.2rem rgba(11, 71, 120, 0.12);
}

@media (max-width: 575px) {
  .contact-info-panel,
  .contact-form-panel {
    padding: 28px 22px;
  }
}
.contact-support-box {
  margin-top: 32px;
  padding: 28px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(11, 71, 120, 0.08), rgba(217, 162, 74, 0.12));
  border: 1px solid rgba(8, 47, 80, 0.1);
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.support-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #fff;
  color: var(--ms-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex: 0 0 auto;
}

.contact-support-box h3 {
  color: var(--ms-blue-dark);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.contact-support-box p {
  color: var(--ms-muted);
  line-height: 1.7;
  margin-bottom: 0;
}

.contact-map {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(8, 47, 80, 0.12);
  box-shadow: 0 14px 35px rgba(8, 47, 80, 0.08);
}

.contact-map iframe {
  display: block;
}

/* ==============================
   BLOG
============================== */

.blog-card {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  height: 100%;
  border: 1px solid rgba(8, 47, 80, 0.08);
  box-shadow: 0 18px 45px rgba(8, 47, 80, 0.08);
  transition: all 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 55px rgba(8, 47, 80, 0.14);
}

.blog-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
  border-radius: 22px 22px 0 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-image img {
  width: 100% !important;
  height: 100% !important;
  display: block;
  object-fit: contain !important;
  object-position: center !important;
  padding: 18px;
  background: #fff;
}

.blog-card:hover .blog-image img {
  transform: none;
}

.post-main-image {
  width: 100%;
  height: 430px;
  display: block;
  object-fit: contain !important;
  object-position: center;
  background: #fff;
  border-radius: 24px;
  margin-bottom: 45px;
  box-shadow: 0 18px 45px rgba(8, 47, 80, 0.12);
}

@media (max-width: 575px) {
  .blog-image {
    height: 210px;
  }

  .post-main-image {
    height: 280px;
  }
}


.blog-card:hover .blog-image img {
  transform: scale(1.06);
}

.blog-content {
  padding: 30px;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.blog-meta span {
  display: inline-flex;
  background: rgba(217, 162, 74, 0.15);
  color: var(--ms-gold);
  border-radius: 999px;
  padding: 6px 13px;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-meta small {
  color: var(--ms-muted);
  font-weight: 600;
}

.blog-content h3 {
  font-size: 22px;
  line-height: 1.35;
  font-weight: 800;
  margin-bottom: 14px;
}

.blog-content h3 a {
  color: var(--ms-blue-dark);
}

.blog-content h3 a:hover {
  color: var(--ms-gold);
}

.blog-content p {
  color: var(--ms-muted);
  line-height: 1.7;
  margin-bottom: 22px;
}

.blog-read-more {
  color: var(--ms-blue);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.blog-read-more:hover {
  color: var(--ms-gold);
}

/* ==============================
   POST DETAIL
============================== */

.post-hero {
  background: linear-gradient(135deg, var(--ms-blue-dark), var(--ms-blue));
  padding: 190px 0 100px;
  color: #fff;
}

.post-hero-content {
  max-width: 950px;
  margin: 0 auto;
  text-align: center;
}

.post-hero h1 {
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 22px;
}

.post-hero p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
  line-height: 1.7;
  max-width: 760px;
  margin: 0 auto;
}

.post-content {
  font-size: 19px;
  line-height: 1.85;
  color: var(--ms-text);
}

.post-main-image {
  width: 100%;
  height: 430px;
  object-fit: cover;
  border-radius: 24px;
  margin-bottom: 45px;
  box-shadow: 0 18px 45px rgba(8, 47, 80, 0.12);
}

.post-content h2 {
  color: var(--ms-blue-dark);
  font-weight: 800;
  font-size: 34px;
  margin: 42px 0 18px;
}

.post-content p {
  margin-bottom: 24px;
}

.post-content ul {
  margin-bottom: 28px;
}

.post-content li {
  margin-bottom: 10px;
}

.post-content blockquote {
  margin: 40px 0;
  padding: 32px;
  border-left: 5px solid var(--ms-gold);
  background: var(--ms-light);
  color: var(--ms-blue-dark);
  font-size: 24px;
  line-height: 1.5;
  font-weight: 700;
  border-radius: 0 18px 18px 0;
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.btn-outline-ms {
  border: 1px solid var(--ms-blue);
  color: var(--ms-blue);
  border-radius: 8px;
  font-weight: 700;
  padding: 11px 22px;
}

.btn-outline-ms:hover {
  background: var(--ms-blue);
  color: #fff;
}

@media (max-width: 575px) {
  .blog-image {
    height: 200px;
  }

  .post-hero {
    padding: 160px 0 80px;
  }

  .post-main-image {
    height: 260px;
  }

  .post-content {
    font-size: 17px;
  }

  .post-content blockquote {
    font-size: 20px;
    padding: 24px;
  }

  .post-navigation .btn {
    width: 100%;
  }
}

.empty-blog-box {
  background: #fff;
  border-radius: 24px;
  padding: 60px 30px;
  text-align: center;
  box-shadow: 0 18px 45px rgba(8, 47, 80, 0.08);
  border: 1px solid rgba(8, 47, 80, 0.08);
  max-width: 700px;
  margin: 0 auto;
}

.empty-blog-box i {
  font-size: 48px;
  color: var(--ms-gold);
  margin-bottom: 18px;
}

.empty-blog-box h3 {
  color: var(--ms-blue-dark);
  font-weight: 800;
  margin-bottom: 10px;
}

.empty-blog-box p {
  color: var(--ms-muted);
  margin-bottom: 0;
}

/* ==============================
   POST SHARE & FEEDBACK
============================== */

.post-share-box,
.post-feedback-box {
  background: #fff;
  border-radius: 24px;
  padding: 34px;
  border: 1px solid rgba(8, 47, 80, 0.08);
  box-shadow: 0 18px 45px rgba(8, 47, 80, 0.08);
  margin-top: 42px;
}

.post-share-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.post-share-box span,
.post-feedback-header span {
  display: inline-flex;
  color: var(--ms-gold);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  margin-bottom: 8px;
}

.post-share-box h3,
.post-feedback-header h3 {
  color: var(--ms-blue-dark);
  font-weight: 800;
  margin-bottom: 0;
}

.post-feedback-header p {
  color: var(--ms-muted);
  line-height: 1.7;
  margin: 10px 0 24px;
}

.post-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.post-share-btn {
  border: 1px solid rgba(8, 47, 80, 0.14);
  background: var(--ms-light);
  color: var(--ms-blue-dark);
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.post-share-btn:hover {
  background: var(--ms-blue);
  color: #fff;
  border-color: var(--ms-blue);
}

button.post-share-btn {
  cursor: pointer;
}

.feedback-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.feedback-options label {
  cursor: pointer;
}

.feedback-options input {
  display: none;
}

.feedback-options span {
  min-height: 72px;
  border: 1px solid rgba(8, 47, 80, 0.14);
  border-radius: 16px;
  background: var(--ms-light);
  color: var(--ms-blue-dark);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s ease;
  text-align: center;
  padding: 12px;
}

.feedback-options span i {
  color: var(--ms-gold);
  font-size: 22px;
}

.feedback-options input:checked + span {
  background: var(--ms-blue);
  color: #fff;
  border-color: var(--ms-blue);
  box-shadow: 0 12px 26px rgba(8, 47, 80, 0.2);
}

.feedback-options input:checked + span i {
  color: #fff;
}

.post-feedback-box .form-label {
  color: var(--ms-blue-dark);
  font-weight: 800;
}

.post-feedback-box .form-control {
  border-radius: 10px;
  border: 1px solid rgba(8, 47, 80, 0.18);
  padding: 13px 15px;
}

.post-feedback-box .form-control:focus {
  border-color: var(--ms-blue);
  box-shadow: 0 0 0 0.2rem rgba(11, 71, 120, 0.12);
}

@media (max-width: 767px) {
  .feedback-options {
    grid-template-columns: 1fr;
  }

  .post-share-box,
  .post-feedback-box {
    padding: 26px 20px;
  }

  .post-share-actions,
  .post-share-btn {
    width: 100%;
  }

  .post-share-btn {
    justify-content: center;
  }
}

/* ==============================
   MOBILE NAV BUTTONS FIX
============================== */

@media (max-width: 991px) {
  .ms-navbar .navbar-nav {
    align-items: flex-start !important;
    gap: 6px;
  }

  .ms-navbar .nav-action-item {
    width: 100%;
    margin-top: 8px;
  }

  .ms-navbar .nav-action-item .btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 150px;
    margin-left: 0 !important;
    margin-top: 0;
    margin-bottom: 0;
  }

  .ms-navbar .nav-action-item + .nav-action-item {
    margin-top: 12px;
  }
}

/* =========================================
   FOOTER COOKIE SETTINGS LINK
========================================= */

.footer .footer-cookie-link {
  display: inline;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}

.footer .footer-cookie-link:hover,
.footer .footer-cookie-link:focus {
  color: #ffffff;
}

.footer .footer-cookie-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

/* =========================================
   LEGAL PAGES
========================================= */

.legal-hero {
  padding: 170px 0 80px;
  color: #ffffff;
  background:
    linear-gradient(
      135deg,
      rgba(5, 44, 75, 0.98),
      rgba(11, 79, 130, 0.92)
    );
}

.legal-hero .section-badge {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 13px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-hero h1 {
  max-width: 760px;
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  font-weight: 800;
  line-height: 1.05;
}

.legal-hero p {
  max-width: 760px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
  line-height: 1.75;
}

.legal-updated {
  display: inline-block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
}

.legal-page {
  padding: 90px 0;
  background: #f7fafc;
}

.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 50px;
  align-items: start;
}

.legal-sidebar {
  position: sticky;
  top: 120px;
}

.legal-sidebar-card {
  padding: 24px;
  background: #ffffff;
  border: 1px solid #e1e8ee;
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(6, 43, 72, 0.07);
}

.legal-sidebar-label {
  display: block;
  margin-bottom: 15px;
  color: #738391;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.legal-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.legal-sidebar nav a {
  padding: 9px 10px;
  color: #29455c;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.legal-sidebar nav a:hover {
  color: #0b4f82;
  background: #eef5fa;
}

.legal-content {
  padding: 48px;
  background: #ffffff;
  border: 1px solid #e1e8ee;
  border-radius: 22px;
  box-shadow: 0 18px 55px rgba(6, 43, 72, 0.08);
}

.legal-content section {
  padding-bottom: 38px;
  margin-bottom: 38px;
  scroll-margin-top: 130px;
  border-bottom: 1px solid #e6edf2;
}

.legal-content section:last-of-type {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.legal-content h2 {
  margin: 0 0 18px;
  color: #123c5d;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
}

.legal-content p,
.legal-content li {
  color: #526675;
  font-size: 1rem;
  line-height: 1.8;
}

.legal-content p {
  margin-bottom: 17px;
}

.legal-content ul {
  margin: 0 0 20px;
  padding-left: 22px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content a {
  color: #0b4f82;
  font-weight: 650;
}

.legal-code-box {
  margin: 20px 0;
  padding: 15px 18px;
  overflow-x: auto;
  color: #123c5d;
  background: #f2f7fa;
  border: 1px solid #dce7ed;
  border-radius: 11px;
}

.legal-code-box code {
  color: inherit;
  font-size: 0.92rem;
  font-weight: 750;
}

.legal-table-wrapper {
  width: 100%;
  margin: 24px 0;
  overflow-x: auto;
  border: 1px solid #dfe7ed;
  border-radius: 14px;
}

.legal-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
}

.legal-table th,
.legal-table td {
  padding: 16px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e3eaef;
}

.legal-table th {
  color: #173e5d;
  background: #f1f6f9;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.025em;
}

.legal-table td {
  color: #526675;
  font-size: 0.91rem;
  line-height: 1.55;
}

.legal-table tbody tr:last-child td {
  border-bottom: 0;
}

.legal-notice-box {
  margin-top: 45px;
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: #31556f;
  background: #eef6fb;
  border: 1px solid #d4e6f1;
  border-radius: 14px;
}

.legal-notice-box i {
  margin-top: 3px;
  color: #0b4f82;
  font-size: 1.2rem;
}

.legal-notice-box p {
  margin: 0;
  color: inherit;
  font-size: 0.9rem;
  line-height: 1.65;
}

@media (max-width: 991px) {
  .legal-hero {
    padding: 140px 0 65px;
  }

  .legal-page {
    padding: 65px 0;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .legal-sidebar {
    position: static;
  }

  .legal-sidebar nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-content {
    padding: 34px;
  }
}

@media (max-width: 575px) {
  .legal-hero {
    padding: 120px 0 52px;
  }

  .legal-page {
    padding: 45px 0;
  }

  .legal-sidebar nav {
    grid-template-columns: 1fr;
  }

  .legal-content {
    padding: 25px 20px;
    border-radius: 16px;
  }

  .legal-content section {
    padding-bottom: 30px;
    margin-bottom: 30px;
  }

  .legal-notice-box {
    flex-direction: column;
  }
}