/* ========================================
   Legal Pages Styles - ElektrikerHjelp
   ======================================== */

/* Legal Hero Section */
.legal-hero {
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
}

.legal-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.legal-hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0c1829 0%, #1a365d 50%, #0c1829 100%);
}

.legal-hero__pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(251, 191, 36, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.06) 0%, transparent 40%);
  opacity: 0.8;
}

.legal-hero__container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Breadcrumb */
.legal-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
}

.legal-hero__breadcrumb-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}

.legal-hero__breadcrumb-link:hover {
  color: #fbbf24;
}

.legal-hero__breadcrumb-link img {
  opacity: 0.7;
  filter: brightness(0) invert(1);
}

.legal-hero__breadcrumb-sep {
  opacity: 0.4;
  filter: brightness(0) invert(1);
}

.legal-hero__breadcrumb-current {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 500;
}

/* Hero Content */
.legal-hero__content {
  max-width: 700px;
}

.legal-hero__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 24px;
  padding: 8px 16px;
  color: #fbbf24;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
}

.legal-hero__label img {
  filter: brightness(0) saturate(100%) invert(79%) sepia(46%) saturate(762%) hue-rotate(357deg) brightness(103%) contrast(97%);
}

.legal-hero__title {
  font-size: 2.75rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
}

.legal-hero__desc {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

/* Legal Main Content */
.legal-main {
  padding: 60px 0;
  background: #f8fafc;
}

.legal-main__container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-main__wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Legal Section */
.legal-section {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.legal-section__header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  background: linear-gradient(135deg, #0c1829 0%, #1a365d 100%);
  border-bottom: 3px solid #fbbf24;
}

.legal-section__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(251, 191, 36, 0.2);
  border: 2px solid #fbbf24;
  border-radius: 12px;
  color: #fbbf24;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.legal-section__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.legal-section__card {
  padding: 28px;
}

.legal-section__card p {
  color: #374151;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.legal-section__card p:last-child {
  margin-bottom: 0;
}

.legal-section__card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1a365d;
  margin: 24px 0 12px;
}

.legal-section__card h3:first-child {
  margin-top: 0;
}

.legal-section__card a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.legal-section__card a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* Lists */
.legal-section__list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.legal-section__list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: #374151;
  font-size: 15px;
  line-height: 1.6;
}

.legal-section__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: #fbbf24;
  border-radius: 50%;
}

.legal-section__list--check li::before {
  content: '✓';
  background: #10b981;
  color: #fff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 2px;
}

.legal-section__list--numbered {
  counter-reset: item;
}

.legal-section__list--numbered li {
  counter-increment: item;
}

.legal-section__list--numbered li::before {
  content: counter(item);
  background: #1a365d;
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 1px;
}

/* Highlight Box */
.legal-section__highlight {
  display: flex;
  gap: 16px;
  background: #eff6ff;
  border-left: 4px solid #3b82f6;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

.legal-section__highlight--success {
  background: #ecfdf5;
  border-left-color: #10b981;
}

.legal-section__highlight-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.legal-section__highlight-content p {
  margin: 0;
  font-size: 14px;
}

.legal-section__highlight-content p:first-child {
  margin-bottom: 6px;
}

/* Payment Grid */
.legal-section__payment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.legal-section__payment-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
}

.legal-section__payment-item img {
  opacity: 0.7;
}

.legal-section__payment-item span {
  color: #374151;
  font-size: 14px;
  font-weight: 500;
}

/* Warranty Grid */
.legal-section__warranty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0;
}

.legal-section__warranty-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, #0c1829 0%, #1a365d 100%);
  border-radius: 12px;
  padding: 24px 16px;
}

.legal-section__warranty-period {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 8px;
}

.legal-section__warranty-type {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}

.legal-section__warranty-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

/* Storage Grid */
.legal-section__storage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0;
}

.legal-section__storage-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 16px;
}

.legal-section__storage-period {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a365d;
  margin-bottom: 6px;
}

.legal-section__storage-type {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 4px;
}

.legal-section__storage-note {
  font-size: 12px;
  color: #6b7280;
}

/* Rights Grid */
.legal-section__rights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 20px 0;
}

.legal-section__right-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.legal-section__right-item:hover {
  border-color: #fbbf24;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.1);
}

.legal-section__right-item strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #1a365d;
  margin-bottom: 6px;
}

.legal-section__right-item span {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}

/* Cookies Grid */
.legal-section__cookies-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.legal-section__cookie-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 20px;
}

.legal-section__cookie-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.legal-section__cookie-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.legal-section__cookie-content strong {
  font-size: 15px;
  font-weight: 600;
  color: #1a365d;
}

.legal-section__cookie-content span {
  font-size: 13px;
  color: #6b7280;
}

/* Contact Box */
.legal-section__contact-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  margin-top: 16px;
}

.legal-section__contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #374151;
  font-size: 15px;
}

.legal-section__contact-row img {
  opacity: 0.6;
}

/* Authority Box */
.legal-section__authority-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  margin-top: 16px;
}

.legal-section__authority-box strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #1a365d;
  margin-bottom: 12px;
}

.legal-section__authority-box p {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 8px;
}

.legal-section__authority-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #2563eb;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  margin-top: 8px;
  transition: color 0.2s;
}

.legal-section__authority-link:hover {
  color: #1d4ed8;
}

/* Note */
.legal-section__note {
  font-size: 13px !important;
  color: #6b7280 !important;
  font-style: italic;
  margin-top: 16px !important;
}

/* Acceptance */
.legal-section__acceptance {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 2px solid #10b981;
  border-radius: 12px;
  padding: 24px;
}

.legal-section__acceptance-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
  flex-shrink: 0;
}

.legal-section__acceptance-content p {
  margin: 0;
  font-size: 15px;
  color: #065f46;
}

.legal-section__acceptance-content p:first-child {
  margin-bottom: 4px;
}

/* Legal CTA Section */
.legal-cta {
  background: linear-gradient(135deg, #0c1829 0%, #1a365d 100%);
  padding: 60px 0;
}

.legal-cta__container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-cta__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.legal-cta__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.legal-cta__desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.legal-cta__actions {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

.legal-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.legal-cta__btn--primary {
  background: #fbbf24;
  color: #0c1829;
}

.legal-cta__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(251, 191, 36, 0.4);
}

.legal-cta__btn--secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

.legal-cta__btn--secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* ========================================
   Responsive Styles
   ======================================== */

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

  .legal-hero__title {
    font-size: 2.5rem;
  }
}

@media (max-width: 1024px) {
  .legal-section__warranty-grid,
  .legal-section__storage-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .legal-section__rights-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .legal-cta__content {
    flex-direction: column;
    text-align: center;
  }

  .legal-cta__actions {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .legal-hero {
    padding: 110px 0 50px;
  }

  .legal-hero__title {
    font-size: 2rem;
  }

  .legal-hero__desc {
    font-size: 1rem;
  }

  .legal-main {
    padding: 40px 0;
  }

  .legal-main__wrapper {
    gap: 24px;
  }

  .legal-section__header {
    padding: 20px;
    gap: 12px;
  }

  .legal-section__num {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  .legal-section__title {
    font-size: 1.1rem;
  }

  .legal-section__card {
    padding: 20px;
  }

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

  .legal-section__warranty-grid,
  .legal-section__storage-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .legal-section__warranty-item,
  .legal-section__storage-item {
    padding: 16px;
  }

  .legal-section__warranty-period {
    font-size: 1.5rem;
  }

  .legal-section__rights-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .legal-section__highlight {
    flex-direction: column;
    gap: 12px;
  }

  .legal-section__acceptance {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .legal-cta {
    padding: 40px 0;
  }

  .legal-cta__title {
    font-size: 1.5rem;
  }

  .legal-cta__actions {
    flex-direction: column;
    width: 100%;
  }

  .legal-cta__btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .legal-hero {
    padding: 100px 0 40px;
  }

  .legal-hero__breadcrumb {
    margin-bottom: 24px;
  }

  .legal-hero__label {
    font-size: 13px;
    padding: 6px 12px;
  }

  .legal-hero__title {
    font-size: 1.75rem;
  }

  .legal-hero__desc {
    font-size: 0.95rem;
  }

  .legal-main {
    padding: 32px 0;
  }

  .legal-main__container {
    padding: 0 16px;
  }

  .legal-main__wrapper {
    gap: 20px;
  }

  .legal-section {
    border-radius: 12px;
  }

  .legal-section__header {
    padding: 16px;
  }

  .legal-section__num {
    width: 34px;
    height: 34px;
    font-size: 13px;
    border-radius: 8px;
  }

  .legal-section__title {
    font-size: 1rem;
  }

  .legal-section__card {
    padding: 16px;
  }

  .legal-section__card p {
    font-size: 14px;
  }

  .legal-section__card h3 {
    font-size: 0.95rem;
  }

  .legal-section__list li {
    font-size: 14px;
    padding-left: 24px;
  }

  .legal-section__cookie-item {
    padding: 14px 16px;
  }

  .legal-section__cookie-icon {
    width: 40px;
    height: 40px;
  }

  .legal-section__cookie-content strong {
    font-size: 14px;
  }

  .legal-section__cookie-content span {
    font-size: 12px;
  }

  .legal-section__right-item {
    padding: 16px;
  }

  .legal-section__right-item strong {
    font-size: 14px;
  }

  .legal-section__right-item span {
    font-size: 12px;
  }

  .legal-section__acceptance {
    padding: 20px;
  }

  .legal-section__acceptance-icon {
    width: 48px;
    height: 48px;
  }

  .legal-section__acceptance-content p {
    font-size: 14px;
  }

  .legal-cta {
    padding: 32px 0;
  }

  .legal-cta__container {
    padding: 0 16px;
  }

  .legal-cta__title {
    font-size: 1.25rem;
  }

  .legal-cta__desc {
    font-size: 14px;
  }

  .legal-cta__btn {
    padding: 12px 20px;
    font-size: 14px;
  }
}

@media (max-width: 375px) {
  .legal-hero__title {
    font-size: 1.5rem;
  }

  .legal-section__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .legal-section__warranty-period {
    font-size: 1.25rem;
  }

  .legal-section__storage-period {
    font-size: 1.1rem;
  }
}
