:root {
  --bg-color: #F4F7F6;
  --sidebar-bg: #0B2545;
  --sidebar-text: #EEF4ED;
  --content-text: #13315C;
  --content-muted: #4F6D8A;
  --accent: #FF9F1C;
  --accent-hover: #E88F15;
  --card-bg: #FFFFFF;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(11, 37, 69, 0.05);
  --btn-radius: 4px;
}

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

body {
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--content-text);
  line-height: 1.6;
  font-size: 16px;
  display: flex;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
}

/* Sticky Sidebar Navigation */
.sidebar {
  width: 300px;
  height: 100vh;
  background-color: var(--sidebar-bg);
  color: var(--sidebar-text);
  position: fixed;
  top: 0;
  left: 0;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  z-index: 100;
}

.brand {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 50px;
  letter-spacing: -0.5px;
}

.brand span {
  color: var(--accent);
}

.nav-menu {
  list-style: none;
  flex-grow: 1;
}

.nav-menu li {
  margin-bottom: 20px;
}

.nav-menu a {
  color: rgba(238, 244, 237, 0.7);
  font-size: 1.1rem;
  font-weight: 500;
  display: block;
  padding: 10px 0;
  transition: all 0.3s;
  border-left: 3px solid transparent;
  padding-left: 15px;
}

.nav-menu a:hover, .nav-menu a.active {
  color: var(--sidebar-text);
  border-left-color: var(--accent);
}

.sidebar-footer {
  font-size: 0.8rem;
  color: rgba(238, 244, 237, 0.5);
}

/* Main Content Area */
.main-content {
  margin-left: 300px;
  flex-grow: 1;
  padding: 40px;
  max-width: 1200px;
}

/* Modular Blocks */
.module {
  background-color: var(--card-bg);
  border-radius: var(--radius);
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: var(--shadow);
}

.module-header {
  margin-bottom: 25px;
}

.module-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
  color: var(--sidebar-bg);
  background-color: rgba(11, 37, 69, 0.1);
  padding: 5px 12px;
  border-radius: var(--btn-radius);
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.module h1 {
  font-size: 2.5rem;
  color: var(--sidebar-bg);
  line-height: 1.2;
}

.module h2 {
  font-size: 1.8rem;
  color: var(--sidebar-bg);
  margin-bottom: 15px;
}

.module p {
  color: var(--content-muted);
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.module-split {
  display: flex;
  gap: 40px;
  align-items: center;
}

.module-split.reverse {
  flex-direction: row-reverse;
}

.module-split > div {
  flex: 1;
}

/* Forms */
.form-group {
  margin-bottom: 25px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--sidebar-bg);
}

.form-control {
  width: 100%;
  padding: 15px;
  border: 1px solid rgba(11, 37, 69, 0.2);
  border-radius: var(--btn-radius);
  background-color: #FAFAFA;
  font-family: inherit;
  font-size: 1rem;
  color: var(--content-text);
  transition: border-color 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
}

.btn {
  display: inline-block;
  background-color: var(--accent);
  color: var(--sidebar-bg);
  font-weight: bold;
  border: none;
  padding: 15px 30px;
  border-radius: var(--btn-radius);
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.3s;
}

.btn:hover {
  background-color: var(--accent-hover);
}

/* Legal Pages */
.legal-module {
  background-color: var(--card-bg);
  border-radius: var(--radius);
  padding: 60px;
  box-shadow: var(--shadow);
}

.legal-module h1 {
  font-size: 2.2rem;
  color: var(--sidebar-bg);
  margin-bottom: 10px;
}

.legal-module h2 {
  font-size: 1.4rem;
  color: var(--sidebar-bg);
  margin-top: 40px;
  margin-bottom: 15px;
}

.legal-module p, .legal-module ul {
  color: var(--content-muted);
  margin-bottom: 15px;
}

.legal-module ul {
  padding-left: 20px;
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  border: none;
  padding: 10px 15px;
  border-radius: var(--btn-radius);
  cursor: pointer;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .module-split {
    flex-direction: column;
  }
  .module-split.reverse {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  body {
    flex-direction: column;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    width: 280px;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0;
    padding: 20px;
    padding-top: 80px;
  }
  .mobile-toggle {
    display: block;
  }
}
